/**
 * ONA Club - Estilos de Autenticacion
 * Login, registro, verificacion, bienvenida
 */

/* === Pantalla de Auth === */
.auth-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.auth-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--color-primary-rgb), 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(107, 143, 113, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

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

/* === Logo en Auth === */
.auth-logo {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo__name {
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    letter-spacing: var(--letter-spacing-wide);
    line-height: 1;
}

.auth-logo__tagline {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

.auth-logo__line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: var(--space-md) auto;
}

/* === Formulario de Login === */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.auth-card__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--text-heading);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* === Formulario de Registro (multi-step) === */
.register-form {
    position: relative;
}

.register-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.register-step.active {
    display: block;
}

.register-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.register-progress__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-full);
    background: var(--bg-input);
    transition: all var(--transition-base);
}

.register-progress__dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(var(--color-primary-rgb), 0.3);
}

.register-progress__dot.completed {
    background: var(--color-success);
}

.register-progress__line {
    width: 24px;
    height: 2px;
    background: var(--border-color);
    transition: background var(--transition-base);
}

.register-progress__line.completed {
    background: var(--color-primary);
}

.register-step__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    color: var(--text-heading);
    margin-bottom: var(--space-xs);
}

.register-step__desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.register-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* === Pantalla de Bienvenida === */
.welcome-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.welcome-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(var(--color-primary-rgb), 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.welcome__icon {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-gold);
    animation: fadeInUp 0.6s ease;
}

.welcome__icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-on-primary);
}

.welcome__title {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    color: var(--text-heading);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.welcome__plan {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--space-xl);
    max-width: 400px;
    width: 100%;
    margin: var(--space-xl) auto;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.welcome__plan-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.welcome__plan-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.welcome__plan-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-success);
    flex-shrink: 0;
}

.welcome__cta {
    margin-top: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* === Politica / Condiciones popup === */
.policy-content {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-loose);
}

.policy-content li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.policy-content li:last-child {
    border-bottom: none;
}

.policy-content li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.policy-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.policy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}
