/* 登录页 — 现代 SaaS 双栏布局，无 Font Awesome / Bootstrap 依赖 */

body.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    background: #f4f7fb;
    -webkit-font-smoothing: antialiased;
}

.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 30%, transparent 100%);
}

.login-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
}

.login-bg-glow--tl {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: rgba(14, 165, 233, 0.22);
}

.login-bg-glow--br {
    width: 480px;
    height: 480px;
    right: -100px;
    bottom: -140px;
    background: rgba(139, 92, 246, 0.18);
}

.login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 6vw, 96px);
    min-height: 100vh;
    padding: 40px clamp(20px, 4vw, 64px);
    box-sizing: border-box;
}

.login-hero {
    flex: 1 1 0;
    max-width: 520px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.login-brand-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.login-brand-icon svg {
    width: 100%;
    height: 100%;
}

.login-brand-name {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.35;
}

.login-headline {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.login-headline-line {
    display: block;
}

.login-headline-accent {
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 52%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-tagline {
    margin: 0 0 28px;
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.65;
    color: #64748b;
}

.login-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-features li {
    position: relative;
    padding-left: 18px;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.5;
}

.login-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    transform: translateY(-50%);
}

.login-panel {
    flex: 0 1 440px;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.08),
        0 4px 16px rgba(15, 23, 42, 0.04);
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-header h2 {
    margin: 0 0 8px;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.login-card-header p {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.login-alert svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.login-alert-danger {
    background: #fef2f2;
    color: #dc2626;
}

.login-alert-warning {
    background: #fffbeb;
    color: #d97706;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.4;
    color: #0f172a;
    background: #f1f5f9;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-input:hover {
    background: #eef2f7;
}

.login-input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.login-input-wrap {
    position: relative;
}

.login-input--has-toggle {
    padding-right: 46px;
}

.login-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.login-pwd-toggle:hover {
    color: #64748b;
    background: rgba(148, 163, 184, 0.15);
}

.login-pwd-toggle:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.55);
    outline-offset: 1px;
}

.login-pwd-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.login-pwd-icon--hide {
    display: none;
}

.login-pwd-toggle.is-visible .login-pwd-icon--show {
    display: none;
}

.login-pwd-toggle.is-visible .login-pwd-icon--hide {
    display: block;
}

.login-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin-top: -4px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.login-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.login-check-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
    position: relative;
    flex-shrink: 0;
}

.login-check input:checked + .login-check-box {
    border-color: transparent;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
}

.login-check input:checked + .login-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-check-text {
    font-size: 0.875rem;
    color: #64748b;
}

.login-submit {
    width: 100%;
    margin-top: 4px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #0ea5e9 0%, #6366f1 55%, #a855f7 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.34);
}

.login-submit:active {
    transform: translateY(1px);
}

@media (max-width: 960px) {
    .login-shell {
        flex-direction: column;
        justify-content: center;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .login-hero {
        flex: none;
        width: 100%;
        max-width: 440px;
        text-align: center;
    }

    .login-brand {
        justify-content: center;
        margin-bottom: 28px;
    }

    .login-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .login-features {
        align-items: center;
    }

    .login-features li {
        text-align: left;
    }

    .login-panel {
        flex: none;
        max-width: 440px;
    }
}

@media (max-width: 480px) {
    .login-shell {
        padding: 32px 16px 40px;
    }

    .login-card {
        padding: 28px 22px 24px;
        border-radius: 20px;
    }

    .login-card-header h2 {
        font-size: 1.375rem;
    }

    .login-options {
        gap: 12px 20px;
    }
}
