/* ==================== 登录页独立样式 ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2330;
    background: #f5f6fa;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 10% 0%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 500px at 100% 100%, rgba(236, 72, 153, 0.14), transparent 60%),
        linear-gradient(180deg, #eef0f7 0%, #f5f6fa 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px -20px rgba(20, 20, 60, 0.18), 0 4px 16px rgba(20, 20, 60, 0.06);
    padding: 32px 32px 24px;
    animation: cardIn 0.35s ease-out;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.login-brand { text-align: center; margin-bottom: 24px; }
.brand-icon { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.login-brand h1 { font-size: 22px; font-weight: 600; letter-spacing: 0.5px; }
.brand-sub { color: #888; font-size: 13px; margin-top: 6px; }

.login-tabs {
    display: flex;
    background: #f1f2f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.tab-btn {
    flex: 1;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #5b6271;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 2px 6px rgba(20, 20, 60, 0.08);
    font-weight: 500;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: paneIn 0.25s ease-out; }
@keyframes paneIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-size: 13px;
    color: #5b6271;
    margin-bottom: 6px;
    font-weight: 500;
}
.field input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e2e5ec;
    border-radius: 8px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.15s;
    outline: none;
}
.field input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.field input::placeholder { color: #b0b6c2; }

.error-msg {
    color: #ef4444;
    font-size: 13px;
    min-height: 18px;
    margin-bottom: 8px;
}

.primary-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 2px;
    transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 6px 14px -4px rgba(99, 102, 241, 0.4);
}
.primary-btn:hover  { box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.5); }
.primary-btn:active { transform: translateY(1px); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-tip {
    text-align: center;
    color: #aab0bc;
    font-size: 12px;
    margin-top: 18px;
}
