/* V10 Auth — Alipay-inspired light immersive */

body.v8-auth {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 110% 70% at 50% 0%, rgba(22, 119, 255, 0.20) 0%, transparent 65%),
        radial-gradient(ellipse 90% 60% at 20% 100%, rgba(0, 180, 255, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #EAF3FF 0%, #F2F4F7 55%, #FFFFFF 100%);
    padding-bottom: 30px;
    overflow-x: hidden;
    position: relative;
    color: var(--v8-text);
}

/* Floating bubble decorations */
body.v8-auth::before,
body.v8-auth::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: v8-float 9s ease-in-out infinite alternate;
}
body.v8-auth::before {
    width: 260px; height: 260px;
    top: -60px; left: -80px;
    background: radial-gradient(circle, rgba(22, 119, 255, 0.32) 0%, transparent 70%);
}
body.v8-auth::after {
    width: 320px; height: 320px;
    bottom: -120px; right: -120px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.32) 0%, transparent 70%);
    animation-delay: 2s;
}

.v8-auth-hero {
    padding: 56px 28px 28px;
    color: var(--v8-text);
    position: relative;
    z-index: 2;
    text-align: center;
}
.v8-auth-hero .logo-badge {
    width: 76px; height: 76px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1677FF 0%, #0095EE 60%, #00B4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        0 14px 30px rgba(22, 119, 255, 0.42);
    overflow: hidden;
    position: relative;
    animation: v8-bounce-in 0.7s var(--v8-spring) both;
}
.v8-auth-hero .logo-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(22, 119, 255, 0.35);
    animation: v8-ring 2.4s var(--v8-ease-out) infinite;
}
.v8-auth-hero .logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; position: relative; z-index: 1; }

.v8-auth-hero .hero-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.18;
    color: var(--v8-text);
    background: linear-gradient(135deg, #1677FF 0%, #0095EE 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: v8-rise 0.5s 0.08s var(--v8-ease-out) both;
}
.v8-auth-hero .hero-sub {
    font-size: 14px;
    color: var(--v8-text-secondary);
    margin-top: 8px;
    animation: v8-rise 0.5s 0.14s var(--v8-ease-out) both;
}

.v8-auth-card {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border-radius: 26px;
    margin: 20px 18px 22px;
    padding: 28px 22px 32px;
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 18px 42px rgba(22, 119, 255, 0.18),
        0 4px 10px rgba(22, 119, 255, 0.06);
    z-index: 2;
    animation: v8-rise 0.5s 0.12s var(--v8-ease-out) both;
    overflow: hidden;
}
.v8-auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 180px at 100% 0%, rgba(22, 119, 255, 0.08), transparent 60%),
        radial-gradient(circle 160px at 0% 100%, rgba(0, 180, 255, 0.08), transparent 60%);
    pointer-events: none;
}
.v8-auth-card > * { position: relative; z-index: 1; }

.v8-auth-tabs {
    display: flex;
    background: rgba(22, 119, 255, 0.06);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 26px;
    position: relative;
}
.v8-auth-tabs a {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--v8-text-tertiary);
    border-radius: 10px;
    transition: background 0.22s var(--v8-ease-out), color 0.22s var(--v8-ease-out), transform 0.18s var(--v8-spring);
}
.v8-auth-tabs a:hover { color: var(--v8-primary); }
.v8-auth-tabs a.active {
    background: linear-gradient(135deg, var(--v8-primary), var(--v8-cyan));
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.34);
    transform: scale(1.02);
}

.v8-auth-input-group {
    margin-bottom: 16px;
    animation: v8-rise 0.34s var(--v8-ease-out) both;
}
.v8-auth-input-group:nth-child(1) { animation-delay: 0.14s; }
.v8-auth-input-group:nth-child(2) { animation-delay: 0.18s; }
.v8-auth-input-group:nth-child(3) { animation-delay: 0.22s; }
.v8-auth-input-group:nth-child(4) { animation-delay: 0.26s; }
.v8-auth-input-group:nth-child(5) { animation-delay: 0.30s; }
.v8-auth-input-group .input-label {
    font-size: 12px;
    color: var(--v8-text-secondary);
    font-weight: 600;
    margin: 0 6px 8px;
    letter-spacing: 0.4px;
}

.v8-auth-prefix {
    font-size: 15px;
    color: var(--v8-text-secondary);
    padding-right: 10px;
    border-right: 1px solid var(--v8-separator-opaque);
    margin-right: 12px;
    font-weight: 600;
}

.v8-auth-submit {
    margin-top: 22px;
    animation: v8-rise 0.4s 0.36s var(--v8-ease-out) both;
}
.v8-auth-submit .v8-btn { height: 50px; font-size: 16px; }
.v8-auth-footer {
    text-align: center;
    color: var(--v8-text-tertiary);
    font-size: 13px;
    margin-top: 22px;
    animation: v8-fade-in 0.5s 0.44s both;
}
.v8-auth-footer a {
    color: var(--v8-primary);
    font-weight: 600;
    position: relative;
}
.v8-auth-footer a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1px; background: var(--v8-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s var(--v8-ease-out);
}
.v8-auth-footer a:hover::after { transform: scaleX(1); }
