/* auth pages - login, register */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darkest);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Base grid background to match landing */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Glow orb effect (Emerald) */
.auth-page::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    z-index: 10;
    position: relative;
}

.auth-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.auth-logo .logo-icon {
    font-size: 1.25rem;
    background: var(--accent-gradient);
    color: var(--bg-darkest);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.auth-logo .logo-text {
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.auth-logo .accent {
    color: var(--text-secondary);
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

.auth-form {
    margin-top: var(--space-lg);
}

.auth-form .btn {
    margin-top: 0.5rem;
    height: 44px;
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
}

.auth-footer a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* auth page animations */
@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-card {
    animation: fadeScaleIn 0.5s cubic-bezier(0, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }
}