/* ========================================================================== 
   LOGIN V6 — DINASTÍA ENYA
   --------------------------------------------------------------------------
   Este archivo contiene SOLO los estilos del login.
   Se separa de estilo.css para facilitar mantenimiento y futuras mejoras.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables específicas del login
   -------------------------------------------------------------------------- */
:root {
    --login-bg: #020c09;
    --login-panel: rgba(7, 22, 18, 0.96);
    --login-panel-soft: rgba(12, 35, 28, 0.76);
    --login-emerald: #1fd69a;
    --login-emerald-soft: #53e8b7;
    --login-gold: #d7ad3a;
    --login-gold-soft: #f1cf70;
    --login-text: #f4f8f5;
    --login-muted: #a2b5ad;
    --login-line: rgba(83, 232, 183, 0.22);
    --login-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
}

/* --------------------------------------------------------------------------
   2. Fondo general
   -------------------------------------------------------------------------- */
.login-body-v6{
    margin:0;

    /* Ocupa toda la altura visible del navegador */
    min-height:100vh;

    /* Centra el login horizontal y verticalmente */
    display:flex;
    align-items:center;
    justify-content:center;

    /* Evita que el login toque los bordes */
    padding:24px;

    background:
        radial-gradient(
            circle at 15% 18%,
            rgba(31,214,154,.10),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(215,173,58,.09),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #04140f,
            #061d16 55%,
            #03110d
        );

    color:#f3f7f4;

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
}

/* Sutil trama de líneas para dar aspecto tecnológico/futurista. */
.login-body-v6::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, black 22%, black 80%, transparent);
}

/* --------------------------------------------------------------------------
   3. Contenedor principal de dos columnas
   -------------------------------------------------------------------------- */
.login-stage-v6 {
    width: min(1540px, calc(100% - 32px));
    min-height: auto;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
    border: 1px solid rgba(215, 173, 58, 0.20);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--login-shadow), inset 0 1px 0 rgba(255,255,255,.025);
    background: rgba(2, 12, 9, 0.78);
    backdrop-filter: blur(15px);
    position: relative;
}

/* --------------------------------------------------------------------------
   4. Panel izquierdo / identidad visual
   -------------------------------------------------------------------------- */
.login-hero-v6 {
    position: relative;
    min-height: 100%;
    padding: clamp(34px, 4vw, 64px);
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 22%, rgba(215, 173, 58, 0.10), transparent 31%),
        linear-gradient(145deg, rgba(2, 12, 9, .92), rgba(3, 23, 17, .82));
}

/* Línea luminosa inclinada de fondo. */
.login-hero-v6::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 2px;
    left: -10%;
    bottom: 24%;
    z-index: -2;
    transform: rotate(-17deg);
    background: linear-gradient(90deg, transparent, rgba(215,173,58,.1), var(--login-gold-soft), rgba(31,214,154,.65), transparent);
    box-shadow: 0 0 22px rgba(215, 173, 58, .35);
}

/* Orbes de luz decorativos. */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
    z-index: -3;
}
.hero-orb--gold {
    width: 360px;
    height: 360px;
    left: -170px;
    bottom: 10%;
    background: radial-gradient(circle, rgba(215,173,58,.15), transparent 68%);
}
.hero-orb--emerald {
    width: 460px;
    height: 460px;
    right: -230px;
    top: 18%;
    background: radial-gradient(circle, rgba(31,214,154,.16), transparent 70%);
}

/* Silueta decorativa de bailarina. No recibe clics ni lectura de pantalla. */
.login-dancer-art {
    position: absolute;
    right: -5px;
    top: 4%;
    height: 91%;
    width: auto;
    opacity: .52;
    object-fit: contain;
    pointer-events: none;
    z-index: -1;
    filter: saturate(.9) contrast(1.03);
    mix-blend-mode: screen;
}

.hero-content-v6 {
    width: min(640px, 100%);
    position: relative;
    z-index: 2;
}

/* Logo oficial. */
.hero-logo-v6 {
    width: clamp(210px, 24vw, 355px);
    height: auto;
    display: block;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(215, 173, 58, .22));
}

.hero-brand-v6 {
    text-align: center;
}
.hero-flourish-v6 {
    display: inline-block;
    color: var(--login-gold-soft);
    font-size: 20px;
    margin-bottom: 4px;
    text-shadow: 0 0 18px rgba(215,173,58,.35);
}
.hero-brand-v6 h1 {
    margin: 0;
    color: var(--login-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.1vw, 64px);
    font-weight: 500;
    letter-spacing: .16em;
    line-height: 1.02;
    text-shadow: 0 0 25px rgba(215, 173, 58, .15);
}
.hero-subtitle-v6 {
    margin: 11px 0 0;
    color: var(--login-emerald-soft);
    letter-spacing: .34em;
    font-weight: 700;
    font-size: 13px;
}
.hero-description-v6 {
    margin: 16px auto 0;
    max-width: 510px;
    color: #e7eee9;
    line-height: 1.55;
    font-size: 16px;
}

/* Tres beneficios inferiores. */
.hero-benefits-v6 {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.benefit-v6 {
    text-align: center;
    padding: 11px 5px;
}
.benefit-icon-v6 {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    color: var(--login-emerald-soft);
    filter: drop-shadow(0 0 10px rgba(31,214,154,.22));
}
.benefit-icon-v6 svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.benefit-v6 strong {
    display: block;
    color: var(--login-gold-soft);
    font-size: 15px;
    margin-bottom: 5px;
}
.benefit-v6 small {
    color: #bdc9c3;
    line-height: 1.45;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   5. Panel derecho / formulario
   -------------------------------------------------------------------------- */
.login-form-zone-v6 {
    display: grid;
    place-items: center;
    padding: clamp(22px, 3.2vw, 52px);
    position: relative;
    background:
        linear-gradient(180deg, rgba(6,22,17,.78), rgba(4,15,12,.95)),
        radial-gradient(circle at 50% 0%, rgba(31,214,154,.09), transparent 42%);
}

.login-panel-v6 {
    width: min(620px, 100%);
    padding: clamp(25px, 3vw, 42px);
    border-radius: 25px;
    border: 1px solid rgba(31, 214, 154, .78);
    background:
        linear-gradient(150deg, rgba(8, 26, 20, .98), rgba(4, 16, 13, .98));
    box-shadow:
        0 0 0 1px rgba(31,214,154,.035),
        0 26px 70px rgba(0,0,0,.38),
        0 0 55px rgba(31,214,154,.10),
        inset 0 1px 0 rgba(255,255,255,.025);
}

/* Chip superior de seguridad. */
.security-chip-v6 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d8e7e0;
    margin-bottom: 20px;
}
.security-chip-icon-v6 {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(31,214,154,.30);
    background: rgba(31,214,154,.07);
    color: var(--login-emerald-soft);
}
.security-chip-icon-v6 svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.security-chip-v6 strong,
.security-chip-v6 small {
    display: block;
}
.security-chip-v6 strong {
    color: var(--login-emerald-soft);
    margin-bottom: 3px;
}
.security-chip-v6 small {
    color: var(--login-muted);
    font-size: 12px;
}

.login-heading-v6 {
    text-align: center;
    margin-bottom: 27px;
}
.login-heading-v6 h2 {
    margin: 0;
    color: var(--login-gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4vw, 59px);
    font-weight: 500;
    letter-spacing: .01em;
}
.login-heading-v6 p {
    margin: 11px 0 0;
    color: #d2ddd8;
    font-size: 15px;
}
.heading-line-v6 {
    display: block;
    width: 62%;
    height: 1px;
    margin: 20px auto 0;
    position: relative;
    background: linear-gradient(90deg, transparent, rgba(215,173,58,.65), transparent);
}
.heading-line-v6 i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--login-gold-soft);
    box-shadow: 0 0 12px rgba(241,207,112,.85);
}

.login-messages-v6 {
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   6. Campos del formulario
   -------------------------------------------------------------------------- */
.login-form-v6 {
    display: grid;
    gap: 18px;
}
.login-field-v6 label {
    display: block;
    margin: 0 0 8px;
    color: var(--login-emerald-soft);
    font-size: 14px;
    font-weight: 700;
}
.login-input-shell-v6 {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid rgba(83,232,183,.34);
    background: rgba(3, 14, 11, .80);
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.login-input-shell-v6:focus-within {
    border-color: rgba(241,207,112,.80);
    box-shadow: 0 0 0 3px rgba(215,173,58,.08), 0 0 22px rgba(31,214,154,.06);
    background: rgba(4, 18, 14, .96);
}
.input-icon-v6 {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    color: #94a9a0;
}
.input-icon-v6 svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Se sobreescriben estilos globales para que el input no parezca otra caja interna. */
.login-input-shell-v6 input,
.login-input-shell-v6 input.field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 17px 2px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--login-text) !important;
    font-size: 15px;
}
.login-input-shell-v6 input::placeholder {
    color: #71837b;
}

/* El campo contraseña deja espacio al botón de mostrar/ocultar. */
.login-password-shell-v6 {
    padding-right: 8px;
}

/* --------------------------------------------------------------------------
   7. Toggle / Conmutador de estado + Icon Morphing
   -------------------------------------------------------------------------- */
.password-morph-toggle {
    flex: 0 0 auto;
    min-width: 94px;
    height: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(215,173,58,.28);
    border-radius: 11px;
    background: rgba(215,173,58,.065);
    color: var(--login-gold-soft);
    cursor: pointer;
    transition:
        background .22s ease,
        border-color .22s ease,
        transform .18s ease,
        box-shadow .22s ease;
}
.password-morph-toggle:hover {
    background: rgba(215,173,58,.12);
    border-color: rgba(241,207,112,.56);
    box-shadow: 0 0 18px rgba(215,173,58,.08);
}
.password-morph-toggle:active {
    transform: scale(.96);
}
.password-morph-toggle:focus-visible {
    outline: 2px solid var(--login-emerald-soft);
    outline-offset: 2px;
}
.password-toggle-text {
    font-size: 11px;
    font-weight: 700;
}

/*
   El contenedor "stack" coloca ambos SVG exactamente en el mismo punto.
   Esto permite hacer la transición visual entre iconos sin que el botón salte.
*/
.password-icon-stack {
    width: 23px;
    height: 23px;
    position: relative;
    display: inline-block;
}
.password-icon {
    position: absolute;
    inset: 0;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: center;
    transition:
        opacity .24s ease,
        transform .32s cubic-bezier(.2,.8,.2,1);
}

/* Estado inicial: ojo visible y ojo tachado oculto. */
.password-icon--eye {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.password-icon--eye-off {
    opacity: 0;
    transform: scale(.58) rotate(42deg);
}

/*
   Estado activo: login.js agrega .is-visible cuando se muestra la contraseña.
   El ojo abierto se encoge/gira y el ojo tachado aparece girando al centro.
*/
.password-morph-toggle.is-visible .password-icon--eye {
    opacity: 0;
    transform: scale(.58) rotate(-42deg);
}
.password-morph-toggle.is-visible .password-icon--eye-off {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.password-morph-toggle.is-visible {
    color: var(--login-emerald-soft);
    border-color: rgba(31,214,154,.38);
    background: rgba(31,214,154,.075);
}

/* --------------------------------------------------------------------------
   8. Botón principal de ingreso
   -------------------------------------------------------------------------- */
.login-submit-v6 {
    width: 100%;
    min-height: 60px;
    margin-top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #171103;
    font-size: 17px;
    background: linear-gradient(105deg, #c99522 0%, #f2d16f 49%, #d9a92f 100%);
    box-shadow: 0 12px 30px rgba(215,173,58,.14), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.login-submit-v6:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 35px rgba(215,173,58,.20), inset 0 1px 0 rgba(255,255,255,.35);
}
.login-submit-v6:active {
    transform: translateY(1px);
}
.login-submit-v6:disabled {
    opacity: .72;
    cursor: wait;
}
.login-submit-v6 svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   9. Recuperación de contraseña
   -------------------------------------------------------------------------- */
.login-separator-v6 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.login-separator-v6 > span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215,173,58,.25));
}
.login-separator-v6 > span:last-child {
    background: linear-gradient(90deg, rgba(215,173,58,.25), transparent);
}
.login-separator-v6 a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--login-emerald-soft);
    font-size: 13px;
}
.login-separator-v6 a:hover {
    color: #8af2cd;
}
.login-separator-v6 svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   10. Inscripción online
   -------------------------------------------------------------------------- */
.online-enrollment-v6 {
    min-height: 58px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    border-radius: 12px;
    border: 1px solid rgba(215,173,58,.70);
    color: var(--login-gold-soft);
    text-decoration: none;
    background: rgba(215,173,58,.025);
    transition: background .2s ease, border-color .2s ease, transform .18s ease;
}
.online-enrollment-v6:hover {
    background: rgba(215,173,58,.08);
    border-color: var(--login-gold-soft);
    transform: translateY(-1px);
}
.online-enrollment-icon-v6 svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.online-enrollment-arrow-v6 {
    font-size: 29px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   11. Mensaje inferior de comunidad
   -------------------------------------------------------------------------- */
.login-community-v6 {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.018);
}
.community-icon-v6 {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--login-emerald-soft);
    border: 1px solid rgba(31,214,154,.32);
    background: rgba(31,214,154,.055);
}
.community-icon-v6 svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-community-v6 p {
    margin: 0;
    color: #dce6e1;
    font-size: 12.5px;
    line-height: 1.55;
}
.login-community-v6 strong {
    color: var(--login-emerald-soft);
}
.login-community-v6 span {
    color: var(--login-muted);
}
.login-security-footnote-v6 {
    margin: 14px 0 0;
    text-align: center;
    color: #788a82;
    font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   12. Responsive: tablets y teléfonos
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .login-stage-v6 {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .login-hero-v6 {
        min-height: 520px;
    }
    .login-dancer-art {
        right: 8%;
        opacity: .32;
    }
    .hero-content-v6 {
        margin: auto;
    }
    .login-form-zone-v6 {
        padding-top: 34px;
        padding-bottom: 42px;
    }
}

@media (max-width: 650px) {
    .login-stage-v6 {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-radius: 20px;
    }
    .login-hero-v6 {
        min-height: auto;
        padding: 28px 20px 30px;
    }
    .hero-logo-v6 {
        width: 190px;
    }
    .hero-brand-v6 h1 {
        font-size: 34px;
        letter-spacing: .10em;
    }
    .hero-description-v6 br {
        display: none;
    }
    .hero-benefits-v6 {
        grid-template-columns: 1fr;
        margin-top: 22px;
        gap: 5px;
    }
    .benefit-v6 {
        display: grid;
        grid-template-columns: 42px 1fr;
        grid-template-rows: auto auto;
        gap: 0 10px;
        text-align: left;
        align-items: center;
    }
    .benefit-icon-v6 {
        grid-row: 1 / 3;
        margin: 0;
    }
    .benefit-v6 strong {
        margin: 0;
    }
    .benefit-v6 small br {
        display: none;
    }
    .login-dancer-art {
        display: none;
    }
    .login-form-zone-v6 {
        padding: 15px;
    }
    .login-panel-v6 {
        padding: 24px 18px;
        border-radius: 18px;
    }
    .login-heading-v6 h2 {
        font-size: 39px;
    }
    .login-password-shell-v6 {
        flex-wrap: wrap;
        padding: 8px 10px 8px 15px;
    }
    .password-morph-toggle {
        min-width: 88px;
    }
    .login-separator-v6 {
        gap: 8px;
    }
}

/* --------------------------------------------------------------------------
   13. Accesibilidad: reduce animaciones si el sistema operativo lo solicita
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .password-icon,
    .password-morph-toggle,
    .login-submit-v6,
    .online-enrollment-v6,
    .login-input-shell-v6 {
        transition: none !important;
    }
}
