/* V8 Auth – Tech 3D */

body.v8-auth {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(52, 199, 89, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 80% 100%, rgba(0, 210, 140, 0.35) 0%, transparent 55%),
        linear-gradient(180deg, #030810 0%, #051020 50%, #030810 100%);
    padding-bottom: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Orbit decoration */
body.v8-auth::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 255, 154, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 255, 154, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 40%, #000 0%, transparent 75%);
    pointer-events: none;
    animation: v8-auth-drift 30s linear infinite;
}
body.v8-auth::after {
    content: '';
    position: fixed;
    top: -120px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 255, 154, 0.4) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    animation: v8-auth-float 10s ease-in-out infinite;
}
@keyframes v8-auth-drift {
    from { background-position: 0 0; }
    to   { background-position: 40px 40px; }
}
@keyframes v8-auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20px, 30px) scale(1.1); }
}

.v8-auth-hero {
    padding: 48px 28px 24px;
    color: #fff;
    position: relative;
    z-index: 2;
}
.v8-auth-hero .logo-badge {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(110, 255, 154, 0.35) 0%, rgba(52, 199, 89, 0.15) 100%);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(110, 255, 154, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 800;
    color: #B5F4C9;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 8px 24px rgba(52, 199, 89, 0.35),
        0 0 0 1px rgba(110, 255, 154, 0.15);
    overflow: hidden;
    position: relative;
    animation: v8-pop-in 0.6s var(--v8-spring);
}
.v8-auth-hero .logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.v8-auth-hero .logo-badge::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(110, 255, 154, 0.3), transparent 60%);
    animation: v8-orbit 4s linear infinite;
    opacity: 0.6;
}

.v8-auth-hero .hero-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF 0%, #B5F4C9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: v8-rise 0.5s 0.05s var(--v8-ease-out) both;
}
.v8-auth-hero .hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 10px;
    animation: v8-rise 0.5s 0.15s var(--v8-ease-out) both;
}

.v8-auth-card {
    position: relative;
    background: rgba(14, 22, 34, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    margin: 16px 16px 20px;
    padding: 32px 22px 32px;
    min-height: 380px;
    border: 1px solid rgba(110, 255, 154, 0.38);
    box-shadow:
        0 0 0 1px rgba(110, 255, 154, 0.18),
        0 0 24px rgba(110, 255, 154, 0.28),
        0 0 60px rgba(52, 199, 89, 0.18),
        0 12px 40px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 1;
    animation:
        v8-rise 0.5s 0.1s var(--v8-ease-out) both,
        v8-card-halo 3.5s 0.8s ease-in-out infinite;
}

@keyframes v8-card-halo {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(110, 255, 154, 0.18),
            0 0 24px rgba(110, 255, 154, 0.28),
            0 0 60px rgba(52, 199, 89, 0.18),
            0 12px 40px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(110, 255, 154, 0.28),
            0 0 36px rgba(110, 255, 154, 0.42),
            0 0 80px rgba(52, 199, 89, 0.26),
            0 12px 40px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

.v8-auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.v8-auth-tabs a {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--v8-text-tertiary);
    border-radius: 10px;
    transition: all 0.2s var(--v8-ease-out);
    letter-spacing: 0.3px;
}
.v8-auth-tabs a.active {
    background: linear-gradient(135deg, var(--v8-primary) 0%, var(--v8-primary-deep) 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(52, 199, 89, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.v8-auth-input-group {
    margin-bottom: 14px;
    animation: v8-rise 0.4s var(--v8-ease-out) both;
}
.v8-auth-input-group:nth-child(1) { animation-delay: 0.15s; }
.v8-auth-input-group:nth-child(2) { animation-delay: 0.2s; }
.v8-auth-input-group:nth-child(3) { animation-delay: 0.25s; }
.v8-auth-input-group:nth-child(4) { animation-delay: 0.3s; }
.v8-auth-input-group:nth-child(5) { animation-delay: 0.35s; }
.v8-auth-input-group .input-label {
    font-size: 12px;
    color: var(--v8-text-tertiary);
    font-weight: 600;
    margin: 0 4px 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.v8-auth-submit {
    margin-top: 14px;
    animation: v8-rise 0.5s 0.4s var(--v8-ease-out) both, v8-pulse-glow 3s 1.2s ease-in-out infinite;
}
.v8-auth-footer {
    text-align: center;
    color: var(--v8-text-tertiary);
    font-size: 13px;
    margin-top: 20px;
    animation: v8-fade-in 0.5s 0.5s both;
}
.v8-auth-footer a {
    color: var(--v8-primary-light);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(110, 255, 154, 0.3);
}
