/* ============================================================
   登录页专属样式 /assets/css/login.css
   依赖: /assets/css/style.css（提供 form-group / btn / alert / badge / card 等公共组件）
   主色: 橙色 #e8622d / 辅助: 深棕 #5b4232
   规范: 字号 ≥ 12px；PC 圆角 ≤ 5px；移动端圆角 ≤ 3px
   ============================================================ */

/* ---------------- 登录页渐变大背景 + 光斑装饰 ---------------- */
.login-body {
    background: linear-gradient(135deg, #3f2d20 0%, #6b4f3a 45%, #b9531f 100%);
    position: relative;
    overflow-x: hidden;
}
.login-body::before,
.login-body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.login-body::before {
    width: 450px;
    height: 420px;
    left: -120px;
    top: -140px;
    background: radial-gradient(circle, rgba(255, 255, 255, .09), transparent 70%);
}
.login-body::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(240, 122, 69, .22), transparent 70%);
}

/* ---------------- 登录容器 ---------------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    z-index: 1;
}
.login-main {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 880px;
}

/* ---------------- 登录卡片 ---------------- */
.login-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .5);
    border-top: 4px solid var(--primary);
    padding: 32px 30px;
    width: 100%;
    max-width: 400px;
    animation: fadeUp .4s ease both;
}
.login-title {
    font-size: 21px;
    color: var(--brown-deep);
    text-align: center;
    letter-spacing: 1px;
}
.login-title i {
    color: #fff;
    background: var(--grad-primary);
    border-radius: 4px;
    padding: 7px 9px;
    margin-right: 6px;
    box-shadow: 0 3px 8px rgba(232, 98, 45, .45);
}
.login-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
    margin: 8px 0 20px;
    letter-spacing: 2px;
}
.login-reg-tip {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 16px;
}
.login-reg-tip a {
    font-weight: bold;
}
.reg-guide li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gray-line);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}
.reg-guide li:last-child {
    border-bottom: none;
}
.reg-step {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* ---------------- 验证码 ---------------- */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.captcha-row input {
    flex: 1;
}
.captcha-img {
    height: 42px;
    width: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-line);
    cursor: pointer;
    flex-shrink: 0;
    background: var(--row-highlight);
}

/* ---------------- 公告栏（玻璃拟态卡片） ---------------- */
.login-ann {
    width: 100%;
    max-width: 400px;
    animation: fadeUp .5s ease both;
}
.login-ann .card {
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .55);
}
.login-ann .ann-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-line);
}
.login-ann .ann-list li:last-child {
    border-bottom: none;
}
.login-ann .ann-list a {
    color: var(--brown-deep);
    font-size: 13px;
    display: inline-block;
    max-width: calc(100% - 90px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.login-ann .ann-list a:hover {
    color: var(--primary);
}
.login-ann .ann-date {
    float: right;
    font-size: 12px;
    color: var(--text-light);
}
.more-link {
    font-size: 12px;
}
.ann-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    padding: 20px 0;
}

/* ---------------- 动画 ---------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 移动端适配 ---------------- */
@media (max-width: 768px) {
    .login-main {
        flex-direction: column;
        align-items: center;
    }
    .login-card {
        padding: 24px 18px;
    }
    .captcha-img {
        width: 96px;
    }
}

/* ---------------- 登录 / 注册 Tab 切换 ---------------- */
.login-tabs {
    display: flex; gap: 6px; margin-bottom: 18px;
    background: #f4efeb; border-radius: var(--radius); padding: 4px;
}
.login-tab {
    flex: 1; border: none; background: transparent; cursor: pointer;
    padding: 8px 0; font-size: 14px; color: var(--brown);
    border-radius: 3px; transition: all .18s; font-weight: bold;
}
.login-tab.active {
    background: var(--grad-primary); color: #fff;
    box-shadow: 0 2px 6px rgba(232, 98, 45, .35);
}
.tab-hidden { display: none; }

/* ---------------- 注册成功倒计时面板 ---------------- */
.reg-ok-panel {
    text-align: center;
    padding: 30px 20px 26px;
    background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
    border: 1px solid #f0d9c4;
    border-radius: var(--radius);
}
.reg-ok-icon {
    width: 64px; height: 64px; line-height: 64px;
    margin: 0 auto 14px;
    background: var(--grad-primary);
    border-radius: 50%;
    color: #fff; font-size: 30px;
    box-shadow: 0 6px 16px rgba(232, 98, 45, .35);
}
.reg-ok-panel h3 {
    font-size: 20px; color: var(--brown-deep);
    margin: 0 0 10px; letter-spacing: 1px;
}
.reg-ok-text {
    font-size: 13.5px; color: var(--text);
    line-height: 1.7; margin: 0 0 18px;
}
.reg-ok-text b { color: var(--primary-dark); }
.reg-ok-countdown {
    font-size: 14px; color: var(--text-light);
}
.reg-ok-countdown #regCountdown {
    color: var(--primary-dark); font-weight: 700;
    font-size: 18px; margin: 0 2px;
    font-variant-numeric: tabular-nums;
}
.reg-ok-countdown .link-btn {
    margin-left: 10px; font-size: 13px;
}

.login-foot {
    text-align: center; color: rgba(255, 255, 255, .72);
    font-size: 12px; margin-top: 26px; letter-spacing: .5px;
}
