/**
 * JOVAN AI TUTOR - Authentication Pages Styling
 * Zenith v3.0 — Premium Indigo-Violet Aesthetic
 */

:root {
    --auth-accent: #6C63FF;
    --auth-accent-dark: #5A52D5;
    --auth-accent-glow: rgba(108, 99, 255, 0.2);
    --auth-bg: hsl(220, 30%, 98%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(108, 99, 255, 0.12);
    --glass-blur: 24px;
    --text-primary: hsl(222, 47%, 11%);
    --text-secondary: hsl(215, 16%, 47%);
    --text-accent: #6C63FF;
}

body {
    background: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
}

/* Sentient Background — Zenith v3.0 */
.cosmos-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, hsl(220, 30%, 98%) 0%, hsl(230, 25%, 95%) 100%);
    overflow: hidden;
}

.nebula {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: nebula-float 20s infinite alternate ease-in-out;
    background: hsla(242, 100%, 70%, 0.15);
}

.nebula.pink {
    background: hsla(280, 70%, 70%, 0.15);
    animation-delay: -10s;
    right: -10%;
    top: -20%;
}

.nebula.yellow {
    background: hsla(200, 80%, 65%, 0.12);
    animation-delay: -20s;
    left: 20%;
    bottom: -20%;
}

.nebula.blue {
    top: -20%;
    left: -10%;
    background: hsla(242, 100%, 70%, 0.12);
}

@keyframes nebula-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.cosmos-star {
    position: absolute;
    background: #6C63FF;
    border-radius: 50%;
    opacity: 0.15;
    animation: twinkle var(--duration, 3s) infinite ease-in-out;
    box-shadow: 0 0 4px rgba(108, 99, 255, 0.3);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.05; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.4); }
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
    z-index: 10;
    padding: 40px;
}

@media (max-width: 1100px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 20px;
        max-width: 550px;
    }
    .info-section {
        display: none;
    }
}

.glass-panel {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 25px 50px -12px rgba(108, 99, 255, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.25);
    box-shadow: 
        0 40px 80px -20px rgba(108, 99, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    margin-left: 2px;
}

.input-field {
    width: 100%;
    background: hsl(225, 25%, 97%);
    border: 1px solid rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 14px 16px 14px 48px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

.input-field:focus {
    border-color: var(--auth-accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    transform: scale(1.01);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 42px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s;
}

.input-field:focus + .input-icon {
    color: var(--auth-accent);
}

/* Password Toggle */
.pass-toggle {
    position: absolute;
    right: 18px;
    top: 42px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.pass-toggle:hover {
    color: var(--auth-accent);
}

.auth-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #6C63FF 0%, #5A52D5 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 15px -3px rgba(108, 99, 255, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 
        0 20px 25px -5px rgba(108, 99, 255, 0.35),
        0 0 20px rgba(108, 99, 255, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.tab-nav {
    display: flex;
    background: hsl(225, 25%, 97%);
    padding: 6px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.tab-nav a {
    flex: 1;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.tab-nav a.active {
    background: var(--auth-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 20px;
}

.section-divider span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.15), transparent);
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid rgba(108, 99, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.04);
}

.feature-card:hover {
    background: hsl(225, 25%, 97%);
    border-color: var(--auth-accent);
    transform: translateX(10px);
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 16px;
    background: white !important;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(108, 99, 255, 0.1) !important;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.google-btn:hover {
    background: hsl(225, 25%, 97%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.15);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.3);
}