/* 登录页：在 base.css 之上覆盖配色与布局 */

:root {
    --line: rgba(255, 255, 255, 0.58);
    --glass: rgba(255, 255, 255, 0.38);
    --glass-strong: rgba(255, 255, 255, 0.66);
    --accent: #1a6dff;
    --accent-deep: #0b4fd6;
    --shadow: 0 24px 60px rgba(30, 70, 130, 0.16);
    --radius: 28px;
}

body {
    font: 16px/1.55 var(--font);
    background:
        radial-gradient(1100px 720px at 12% -8%, #9fd0ff 0%, transparent 55%),
        radial-gradient(900px 620px at 95% 5%, #7ee7d2 0%, transparent 52%),
        radial-gradient(860px 560px at 50% 115%, #b8c8ff 0%, transparent 48%),
        linear-gradient(165deg, #eaf4ff 0%, #e7eefc 46%, #f4f8ff 100%);
}

.orb { filter: blur(42px); opacity: 0.58; }
.orb-a { width: 360px; height: 360px; left: -80px; top: 8%; background: #6eb8ff; }
.orb-b { width: 300px; height: 300px; right: -50px; top: 22%; background: #6fe3cc; animation-delay: -6s; }
.orb-c { width: 380px; height: 380px; left: 28%; bottom: -140px; background: #a9b8ff; animation-delay: -11s; }

.login-main {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 28px 16px 40px;
    display: flex;
    align-items: center;
}

.glass {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.32) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 60px rgba(30, 70, 130, 0.14);
    backdrop-filter: blur(44px) saturate(210%);
    -webkit-backdrop-filter: blur(44px) saturate(210%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.login-shell {
    width: 100%;
    display: grid;
    gap: 18px;
}

.login-hero {
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    text-align: left;
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card {
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.login-mark {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    object-fit: cover;
    display: block;
    margin-bottom: 18px;
    box-shadow: 0 16px 36px rgba(26, 109, 255, 0.28);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-mark:hover { transform: scale(1.04) rotate(-2deg); }

.login-feats .feat {
    animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.login-feats .feat:nth-child(1) { animation-delay: 0.16s; }
.login-feats .feat:nth-child(2) { animation-delay: 0.24s; }
.login-feats .feat:nth-child(3) { animation-delay: 0.32s; }

.primary {
    width: 100%;
    margin-top: 20px;
    border: 0;
    border-radius: 16px;
    padding: 14px 16px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(26, 109, 255, 0.32);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(26, 109, 255, 0.38);
}
.primary:active { transform: scale(0.985); }
.primary:disabled { opacity: 0.72; cursor: wait; transform: none; }

.login-eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.login-name {
    margin: 0 0 10px;
    font-size: clamp(42px, 9vw, 64px);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 740;
}

.login-tag {
    margin: 0 0 22px;
    font-size: 18px;
    color: var(--muted);
    max-width: 18em;
}

.login-feats {
    display: grid;
    gap: 12px;
}

.feat {
    padding: 12px 0 0;
    border-top: 1px solid rgba(26, 109, 255, 0.12);
    display: grid;
    gap: 2px;
}

.feat:first-child { border-top: 0; padding-top: 0; }

.feat strong {
    font-size: 14px;
    font-weight: 680;
    letter-spacing: -0.01em;
    color: var(--accent-deep);
}

.feat span {
    font-size: 13px;
    color: rgba(11, 18, 32, 0.62);
    line-height: 1.45;
}

.login-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.lead { margin: 0 0 16px; color: var(--muted); }

.alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.1);
    color: #b42318;
    font-size: 14px;
}

.login-form label,
.login-form .field-label {
    display: block;
    margin: 14px 0 6px;
    width: 4.2em;
    font-size: 13px;
    color: var(--muted);
    font-weight: 560;
    letter-spacing: 0;
    text-align: justify;
    text-align-last: justify;
}

.login-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.58);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input::placeholder {
    color: rgba(11, 18, 32, 0.38);
    letter-spacing: 0.02em;
}

.login-form input:focus {
    border-color: rgba(26, 109, 255, 0.5);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.12);
}

.links {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 0;
    gap: 12px;
}

.links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 560;
}

@media (min-width: 860px) {
    .login-shell {
        grid-template-columns: 1.08fr 0.92fr;
        align-items: stretch;
        gap: 22px;
    }
    .login-hero, .login-card { min-height: 520px; }
    .login-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 36px;
    }
    .login-hero { padding: 48px 40px; }
}
