/**
 * =====================================================
 * AUTH LANDING PAGE - Estilo Twitter/X Premium
 * Diseñado por: Elite Social Media Designer
 * =====================================================
 */

/* ===== VARIABLES CSS (TEMA CLARO Y OSCURO) ===== */
:root {
    /* Colores Principales - Tema Claro */
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-text-primary: #0f1419;
    --color-text-secondary: #536471;
    --color-border: #eff3f4;
    --color-hover: #f7f9f9;
    
    /* Colores de Marca */
    --color-primary: #53fc1b;
    --color-primary-hover: #45d416;
    --color-primary-text: #000000;
    
    /* Colores de Botones */
    --color-btn-secondary-bg: transparent;
    --color-btn-secondary-border: #cfd9de;
    --color-btn-secondary-text: #0f1419;
    --color-btn-secondary-hover: #f7f9f9;
    
    /* Logo */
    --logo-color: #53fc1b;
    --logo-bg: rgba(83, 252, 27, 0.1);
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Tema Oscuro */
[data-theme="dark"] {
    --color-background: #000000;
    --color-surface: #000000;
    --color-text-primary: #e7e9ea;
    --color-text-secondary: #71767b;
    --color-border: #2f3336;
    --color-hover: #181818;
    
    --color-btn-secondary-bg: transparent;
    --color-btn-secondary-border: #536471;
    --color-btn-secondary-text: #e7e9ea;
    --color-btn-secondary-hover: #181818;
    
    --logo-bg: rgba(83, 252, 27, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 4px 12px rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.auth-landing {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ===== COLUMNA IZQUIERDA: BRAND/LOGO ===== */
.auth-landing__brand {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
    position: relative;
    padding: 2rem;
}

.auth-landing__logo {
    width: 100%;
    max-width: 450px;
    height: auto;
    animation: logoFloat 3s ease-in-out infinite;
}

.auth-landing__logo svg {
    width: 100%;
    height: auto;
    fill: var(--logo-color);
    filter: drop-shadow(0 0 60px rgba(83, 252, 27, 0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== COLUMNA DERECHA: CONTENIDO ===== */
.auth-landing__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

.auth-landing__box {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TÍTULOS ===== */
.auth-landing__title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 3rem;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.auth-landing__subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

/* ===== OPCIONES SOCIALES ===== */
.auth-landing__social-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ===== BOTONES BASE ===== */
.auth-landing__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    gap: 0.75rem;
    font-family: inherit;
    min-height: 48px;
}

.auth-landing__btn:active {
    transform: scale(0.98);
}

/* Botón Google */
.auth-landing__btn--google {
    background-color: var(--color-surface);
    border-color: var(--color-btn-secondary-border);
    color: var(--color-btn-secondary-text);
}

.auth-landing__btn--google:hover {
    background-color: var(--color-hover);
}

/* Botón Facebook */
.auth-landing__btn--facebook {
    background-color: var(--color-surface);
    border-color: var(--color-btn-secondary-border);
    color: var(--color-btn-secondary-text);
}

.auth-landing__btn--facebook:hover {
    background-color: var(--color-hover);
}

/* Botón Primario (Crear cuenta) */
.auth-landing__btn--primary {
    background-color: var(--color-primary);
    color: var(--color-primary-text);
    border-color: var(--color-primary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.auth-landing__btn--primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

/* Botón Secundario (Iniciar sesión) */
.auth-landing__btn--secondary {
    background-color: var(--color-btn-secondary-bg);
    border-color: var(--color-btn-secondary-border);
    color: var(--color-primary);
    font-weight: 700;
}

.auth-landing__btn--secondary:hover {
    background-color: rgba(83, 252, 27, 0.1);
}

/* Iconos de botones */
.auth-landing__btn-icon {
    flex-shrink: 0;
}

/* ===== SEPARADOR ===== */
.auth-landing__divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.auth-landing__divider::before,
.auth-landing__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-landing__divider span {
    padding: 0 1rem;
}

/* ===== TÉRMINOS Y CONDICIONES ===== */
.auth-landing__terms {
    font-size: 0.6875rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 1rem 0 2rem 0;
}

.auth-landing__terms a {
    color: var(--color-primary);
    text-decoration: none;
}

.auth-landing__terms a:hover {
    text-decoration: underline;
}

/* ===== SECCIÓN DE LOGIN ===== */
.auth-landing__login-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.auth-landing__login-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.auth-landing__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    padding: 1.5rem 2rem;
    font-size: 0.8125rem;
}

.auth-landing__footer a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-landing__footer a:hover {
    color: var(--color-text-primary);
    text-decoration: underline;
}

.auth-landing__footer-copy {
    color: var(--color-text-secondary);
}

/* ===== TOGGLE DE TEMA ===== */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background-color: var(--color-hover);
    box-shadow: var(--shadow-md);
    transform: rotate(180deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.theme-toggle .icon-sun {
    color: #f59e0b;
    opacity: 1;
}

.theme-toggle .icon-moon {
    color: #3b82f6;
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 1024px) {
    .auth-landing__brand {
        display: none;
    }
    
    .auth-landing__content {
        flex: 1;
        max-width: 100%;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .auth-landing__content {
        padding: 1.5rem;
    }
    
    .auth-landing__box {
        max-width: 100%;
    }
    
    .auth-landing__title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .auth-landing__subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-landing__footer {
        position: static;
        margin-top: 3rem;
        padding: 1rem;
        font-size: 0.75rem;
        gap: 0.5rem 0.75rem;
    }
    
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .auth-landing__title {
        font-size: 2rem;
    }
    
    .auth-landing__subtitle {
        font-size: 1.25rem;
    }
    
    .auth-landing__btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}

/* ===== ANIMACIONES DE ENTRADA ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-landing {
    animation: fadeIn 0.4s ease-out;
}

/* ===== ACCESIBILIDAD ===== */
.auth-landing__btn:focus,
.theme-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== EFECTOS HOVER MEJORADOS ===== */
.auth-landing__btn {
    position: relative;
}

.auth-landing__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: radial-gradient(circle at center, rgba(83, 252, 27, 0.1) 0%, transparent 70%);
}

.auth-landing__btn--primary::before {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.auth-landing__btn:hover::before {
    opacity: 1;
}

/* ===== ESTADOS DE CARGA ===== */
.auth-landing__btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-landing__btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MEJORAS DE PERFORMANCE ===== */
.auth-landing__logo svg,
.auth-landing__btn-icon {
    will-change: transform;
}

.auth-landing__btn {
    will-change: transform, background-color;
}

