/* auth.css - Splash screen + Login/Signup screen */

/* ---- SPLASH SCREEN ---- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.splash-logo {
    border-radius: 18px;
    animation: splashPulse 1.5s ease-in-out infinite;
}
.splash-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.splash-loader {
    width: 120px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}
.splash-loader-bar {
    width: 40%;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    animation: splashLoad 1.2s ease-in-out infinite;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes splashLoad {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(300%); }
}

/* ---- AUTH SCREEN ---- */
#screen-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 24px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo svg { margin-bottom: 12px; }
.auth-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-form {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span { padding: 0 12px; }

.btn-google {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-google:hover { background: var(--bg-secondary); }
.btn-google svg { flex-shrink: 0; }

.auth-google-hint {
    text-align: center;
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--primary);
    opacity: 0.8;
    line-height: 1.4;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-switch a:hover { text-decoration: underline; }
