/**
 * ═══════════════════════════════════════════════════════════════════════════
 * AUTH-EDITORIAL-FINAL.CSS - Layout 2 Columnas
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * VERSIÓN FINAL:
 * - Jerarquía: The.Archi.Designers. PROTAGONISTA (116px)
 * - Welcome secundario (28px)
 * - by:FUTURÍSTICA® terciario (21px)
 * - Todo alineado IZQUIERDA
 * - Logo 6% más grande (339px)
 * - GLASSMORPHISM MÁS VISIBLE
 * - GRID/FONDO MÁS VISIBLE
 * 
 * FUTURÍSTICA® The.Archi.Designers
 * @version FINAL
 * @date 2026-02-05
 * 
 * ═══════════════════════════════════════════════════════════════════════════
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0;
}

/* ═════════════════════════════════════════════════════════════════════════
   BODY - Sin scroll
   ═════════════════════════════════════════════════════════════════════════ */

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text-primary);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Grid arquitectónico - MESA DE TRABAJO (MÁS VISIBLE) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(0deg, 
            rgba(26, 15, 31, 0.08) 0px, 
            transparent 1px, 
            transparent 40px),
        repeating-linear-gradient(90deg, 
            rgba(26, 15, 31, 0.08) 0px, 
            transparent 1px, 
            transparent 40px);
    opacity: 0.85; /* AUMENTADO: antes 0.70 → ahora 0.85 */
}

body.night::after,
body.evening::after {
    background-image: 
        repeating-linear-gradient(0deg, 
            rgba(0, 255, 163, 0.12) 0px, 
            transparent 1px, 
            transparent 40px),
        repeating-linear-gradient(90deg, 
            rgba(0, 255, 163, 0.12) 0px, 
            transparent 1px, 
            transparent 40px);
    opacity: 0.75; /* AUMENTADO: antes 0.60 → ahora 0.75 */
}

/* ═════════════════════════════════════════════════════════════════════════
   LAYOUT 2 COLUMNAS - DESKTOP
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s var(--ease-spring);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ═════════════════════════════════════════════════════════════════════════
   COLUMNA IZQUIERDA - TODO ALINEADO A LA IZQUIERDA
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* IZQUIERDA */
    justify-content: center;
    padding: var(--space-12);
    padding-left: 80px; /* Margen fijo izquierdo */
    opacity: 0;
    animation: fadeInLeft 1s var(--ease-spring) 0.3s forwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-editorial__logo {
    margin-bottom: 80px; /* Más aire entre logo y texto */
}

.auth-editorial__logo img {
    width: 339px; /* 6% más grande: 320px × 1.06 */
    max-width: 100%;
    height: auto;
    display: block;
}

.auth-editorial__hero {
    text-align: left; /* IZQUIERDA */
}

/* Welcome - SECUNDARIO */
.hero__greeting {
    font-family: var(--font-body); /* Cormorant Garamond */
    font-size: 28px; /* --text-xl */
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

/* The.Archi.Designers. - PROTAGONISTA */
.hero__subtitle {
    font-family: var(--font-body); /* Cormorant Garamond */
    font-size: 116px; /* --text-6xl */
    font-weight: 400;
    line-height: 0.75;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: var(--color-text-primary);
}

/* by: FUTURISTICA® - TERCIARIO */
.hero__brand {
    font-family: var(--font-body); /* Cormorant Garamond */
    font-size: 21px; /* --text-lg */
    font-weight: 400;
    letter-spacing: 0;
    color: var(--color-text-primary);
}

/* ═════════════════════════════════════════════════════════════════════════
   COLUMNA DERECHA - FORM SOBRE MESA
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    position: relative;
}

/* ═════════════════════════════════════════════════════════════════════════
   ERROR MESSAGE
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial__error {
    width: 100%;
    max-width: 420px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-align: center;
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    letter-spacing: 0.05em;
}

/* ═════════════════════════════════════════════════════════════════════════
   FORM - GLASSMORPHISM MÁS VISIBLE
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial__form {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.78); /* MÁS OPACO */
    backdrop-filter: blur(64px) saturate(250%); /* MÁS BLUR */
    -webkit-backdrop-filter: blur(64px) saturate(250%);
    border: 1px solid rgba(255, 255, 255, 0.95); /* BORDER MÁS VISIBLE */
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 1) inset, /* Inner border blanco */
        0 28px 80px rgba(26, 15, 31, 0.25), /* Shadow dramático */
        0 12px 36px rgba(26, 15, 31, 0.18);
    padding: var(--space-16);
    opacity: 0;
    animation: dropGlass 1.2s var(--ease-spring) 0.6s forwards;
    transition: all var(--duration-normal) var(--ease-spring);
}

/* Animación "cae como vidrio" */
@keyframes dropGlass {
    from { 
        opacity: 0; 
        transform: translateY(-40px) scale(0.96);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.auth-editorial__form:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(72px) saturate(270%);
    -webkit-backdrop-filter: blur(72px) saturate(270%);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 1) inset,
        0 32px 90px rgba(26, 15, 31, 0.28),
        0 16px 40px rgba(26, 15, 31, 0.20);
    transform: translateY(-2px);
}

/* ═════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═════════════════════════════════════════════════════════════════════════ */

.form__group {
    margin-bottom: var(--space-8);
}

.form__label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}

.form__input {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.55); /* MÁS VISIBLE */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 15, 31, 0.18); /* BORDER MÁS VISIBLE */
    padding: var(--space-4);
    transition: all var(--duration-normal) var(--ease-spring);
    outline: none;
}

.form__input:focus {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--color-text-primary);
    box-shadow: 0 0 0 2px rgba(26, 15, 31, 0.18);
}

.form__input::placeholder {
    color: var(--color-text-tertiary);
}

.form__submit {
    width: 100%;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-void);
    background: var(--violeta-profundo);
    border: none;
    padding: var(--space-4);
    margin-top: var(--space-6);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-spring);
    outline: none;
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 15, 31, 0.25);
}

.form__submit:active {
    transform: translateY(0);
}

/* ═════════════════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial__footer {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-text-tertiary);
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(26, 15, 31, 0.10);
    opacity: 0;
    animation: fadeInFooter 1s var(--ease-spring) 1.4s forwards;
}

@keyframes fadeInFooter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-editorial__footer span {
    letter-spacing: 0.1em;
}

/* ═════════════════════════════════════════════════════════════════════════
   FORGOT PASSWORD
   ═════════════════════════════════════════════════════════════════════════ */

.auth-editorial__forgot {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-top: var(--space-6);
    letter-spacing: 0.05em;
    transition: color var(--duration-fast) var(--ease-spring);
    opacity: 0;
    animation: fadeInForgot 1s var(--ease-spring) 1.6s forwards;
}

@keyframes fadeInForgot {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-editorial__forgot:hover {
    color: var(--color-text-primary);
}

/* ═════════════════════════════════════════════════════════════════════════
   NIGHT MODE - GLASSMORPHISM MÁS VISIBLE
   ═════════════════════════════════════════════════════════════════════════ */

body.night .auth-editorial__form,
body.evening .auth-editorial__form {
    background: rgba(42, 31, 53, 0.78); /* MÁS OPACO */
    backdrop-filter: blur(64px) saturate(220%); /* MÁS BLUR */
    -webkit-backdrop-filter: blur(64px) saturate(220%);
    border-color: rgba(0, 255, 163, 0.30); /* BORDER MÁS VISIBLE */
    box-shadow: 
        0 0 0 1px rgba(0, 255, 163, 0.25) inset, /* Inner border verde */
        0 28px 80px rgba(0, 0, 0, 0.45),
        0 12px 36px rgba(0, 0, 0, 0.35);
}

body.night .auth-editorial__form:hover,
body.evening .auth-editorial__form:hover {
    background: rgba(42, 31, 53, 0.88);
    backdrop-filter: blur(72px) saturate(240%);
    -webkit-backdrop-filter: blur(72px) saturate(240%);
    border-color: rgba(0, 255, 163, 0.40);
    transform: translateY(-2px);
}

body.night .form__input,
body.evening .form__input {
    background: rgba(42, 31, 53, 0.65);
    border-color: rgba(0, 255, 163, 0.20);
}

body.night .form__input:focus,
body.evening .form__input:focus {
    border-color: var(--proton-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 163, 0.25);
}

body.night .form__submit,
body.evening .form__submit {
    background: transparent;
    border: 1px solid var(--proton-green);
    color: var(--proton-green);
}

body.night .form__submit:hover,
body.evening .form__submit:hover {
    background: rgba(0, 255, 163, 0.10);
    box-shadow: 0 8px 24px rgba(0, 255, 163, 0.30);
}

/* ═════════════════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE STACK VERTICAL
   ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .auth-editorial {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
    }
    
    .auth-editorial__left {
        padding: var(--space-12) var(--space-6);
        padding-left: var(--space-6);
        align-items: center;
        min-height: auto;
    }
    
    .auth-editorial__hero {
        text-align: center;
    }
    
    .auth-editorial__logo {
        margin-bottom: 60px;
    }
    
    .auth-editorial__logo img {
        width: 254px; /* 240px × 1.06 */
    }
    
    .hero__greeting {
        font-size: 21px; /* --text-lg */
    }
    
    .hero__subtitle {
        font-size: 65px; /* --text-4xl */
    }
    
    .hero__brand {
        font-size: 16px; /* --text-base */
    }
    
    .auth-editorial__right {
        padding: var(--space-8) var(--space-6) var(--space-12);
    }
}

@media (max-width: 600px) {
    .auth-editorial__left {
        padding: var(--space-8) var(--space-4);
    }
    
    .auth-editorial__logo {
        margin-bottom: var(--space-8);
    }
    
    .auth-editorial__logo img {
        width: 212px; /* 200px × 1.06 */
    }
    
    .hero__greeting {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }
    
    .hero__subtitle {
        font-size: 49px; /* --text-3xl */
    }
    
    .hero__brand {
        font-size: var(--text-sm);
    }
    
    .auth-editorial__right {
        padding: var(--space-6) var(--space-4) var(--space-8);
    }
    
    .auth-editorial__form {
        padding: var(--space-10);
    }
    
    .auth-editorial__footer {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
        margin-top: var(--space-8);
    }
}

@media (max-width: 400px) {
    .auth-editorial__logo img {
        width: 170px; /* 160px × 1.06 */
    }
    
    .hero__subtitle {
        font-size: 37px; /* --text-2xl */
    }
    
    .auth-editorial__form {
        padding: var(--space-8);
    }
}

/* ═════════════════════════════════════════════════════════════════════════
   VARIABLES LOCALES
   ═════════════════════════════════════════════════════════════════════════ */

:root {
    --space-10: 40px;
}

/* ═══════════════════════════════════════════════════════════════════════ */

/* ═════════════════════════════════════════════════════════════════════════
   CIRCADIAN SUTIL PARA AUTH
   ═════════════════════════════════════════════════════════════════════ */

:root {
    --circadian-intensity: 0.40; /* Muy sutil, profesional */
}

body::before {
    opacity: 0.40 !important;
}

/* ═════════════════════════════════════════════════════════════════════════
   FIX: CONTRASTE AUTH EN FASES NOCTURNAS
   ═════════════════════════════════════════════════════════════════════ */

/* Evening/Night → Glassmorphism OSCURO, texto CLARO */
body.circadian-evening .auth-editorial__right,
body.circadian-night .auth-editorial__right {
    background: rgba(26, 15, 31, 0.85) !important;
    backdrop-filter: blur(64px) saturate(150%) !important;
    border: 1px solid rgba(0, 255, 163, 0.2) !important;
}

body.circadian-evening .auth-editorial__right h2,
body.circadian-evening .auth-editorial__right label,
body.circadian-evening .auth-editorial__right p,
body.circadian-evening .auth-editorial__right a,
body.circadian-night .auth-editorial__right h2,
body.circadian-night .auth-editorial__right label,
body.circadian-night .auth-editorial__right p,
body.circadian-night .auth-editorial__right a {
    color: #F5F3EE !important;
}

body.circadian-evening input,
body.circadian-evening input::placeholder,
body.circadian-night input,
body.circadian-night input::placeholder {
    color: #F5F3EE !important;
    background: rgba(42, 31, 53, 0.5) !important;
    border-color: rgba(0, 255, 163, 0.3) !important;
}

body.circadian-evening .auth-editorial__submit,
body.circadian-night .auth-editorial__submit {
    background: var(--proton-green) !important;
    color: #1A0F1F !important;
}

/* Día → Glassmorphism CLARO, texto OSCURO (ya funciona) */
