/* ── 登录页 ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: var(--bg-light);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 44px 40px 36px;
    box-shadow: 0 8px 40px rgba(26,59,93,0.13);
    border: 1px solid rgba(212,175,55,0.12);
}

.login-logo {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid rgba(212,175,55,0.15);
    margin-bottom: 28px;
}
.login-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    font-family: inherit;
}
.login-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }

.login-form { display: none; flex-direction: column; gap: 16px; }
.login-form.active { display: flex; }

.form-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border: 1.5px solid rgba(212,175,55,0.15);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    transition: border-color 0.2s;
}
.form-field:focus-within { border-color: var(--accent-color); }
.form-field i { color: var(--text-light); font-size: 14px; width: 16px; }
.form-field input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
}
.form-field input::placeholder { color: var(--text-light); }
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-light) inset;
    -webkit-text-fill-color: var(--text-primary);
    caret-color: var(--text-primary);
}

.form-error {
    font-size: 13px;
    color: #e55;
    padding: 8px 12px;
    background: rgba(229,85,85,0.08);
    border-radius: 8px;
    border: 1px solid rgba(229,85,85,0.2);
}
.form-error.hidden { display: none; }

.login-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: #1a1a1a;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 3px 12px rgba(212,175,55,0.35);
    margin-top: 4px;
}
.login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,175,55,0.45); }
.login-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.login-tip-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.5;
}

.login-tip-notice i {
    flex-shrink: 0;
    font-size: 15px;
}

/* ── 导航栏用户区域 ── */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-username {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-username .role-badge {
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 100px;
    background: rgba(212,175,55,0.18);
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(212,175,55,0.15);
    color: var(--accent-color);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.nav-login-btn:hover { background: rgba(212,175,55,0.25); }
.nav-logout-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
    font-family: inherit;
}
.nav-logout-btn:hover { color: #e55; }
