/* ------------------------------------------------------------------
   登录页：浮层卡片 + 渐变 blob 背景，延续奶油 Soft UI 调性
   ------------------------------------------------------------------ */

.login-body {
    overflow: hidden;
    position: relative;
}

.login-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.login-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: drift 18s ease-in-out infinite;
}
.login-bg .blob-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, #d7caff, #efebff);
}
.login-bg .blob-2 {
    width: 380px;
    height: 380px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, #f6ecd9, #f9ede5);
    animation-delay: -6s;
}
.login-bg .blob-3 {
    width: 320px;
    height: 320px;
    top: 40%;
    left: 55%;
    background: radial-gradient(circle, #e8f0eb, #f5f1ea);
    animation-delay: -12s;
    opacity: 0.45;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.04); }
    66% { transform: translate(-30px, 25px) scale(0.97); }
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 40px 36px 32px;
    box-shadow:
        0 1px 2px rgba(40, 30, 60, 0.04),
        0 24px 64px rgba(167, 139, 250, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    background: rgba(245, 241, 234, 0.6);
    border: 1px solid rgba(237, 231, 221, 0.8);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 22px;
}
.brand .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.brand-text {
    color: var(--text);
    font-weight: 600;
}

.login-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.login-sub {
    margin: 0 0 28px 0;
    font-size: 13.5px;
    color: var(--text-3);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-left: 2px;
}
.field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(245, 241, 234, 0.55);
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    color: var(--text);
    transition: 180ms;
}
.field input:focus {
    outline: 0;
    background: var(--surface);
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input::placeholder {
    color: var(--text-3);
}

.login-error {
    background: var(--rejected-bg);
    color: var(--rejected);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
}

.login-btn {
    margin-top: 8px;
    padding: 13px 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35);
    transition: 180ms;
    letter-spacing: 0.01em;
}
.login-btn:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(139, 109, 240, 0.4);
}
.login-btn:active {
    transform: translateY(0);
}
.login-btn .arrow {
    font-size: 16px;
    transition: 180ms;
}
.login-btn:hover .arrow {
    transform: translateX(3px);
}

.login-foot {
    margin-top: 26px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-3);
}
.login-foot .sep {
    margin: 0 8px;
    color: var(--border-strong);
}
