﻿/* =====================================================================
   hx-login.css - Pantalla de ingreso: panel de marca (izquierda) + formulario (derecha).
   Paleta oficial Hexagon (Brand Hub). Referencia de estructura: hexatickets.com
   ===================================================================== */
.hx-login-page {
    margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--hx-text, #41454F);
    background:
        radial-gradient(900px 500px at 15% 10%, rgba(1, 173, 255, .18), transparent 60%),
        radial-gradient(800px 500px at 90% 95%, rgba(0, 81, 152, .55), transparent 60%),
        #00284C;
}
.hx-login-card {
    display: flex; width: 100%; max-width: 960px; min-height: 560px; border-radius: 16px; overflow: hidden;
    background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .40);
}

/* ---- Panel de marca ---- */
.hx-login-brand {
    flex: 1 1 50%; padding: 40px 36px; color: #fff; display: flex; flex-direction: column;
    background: linear-gradient(160deg, #00284C 0%, #005198 100%);
}
.hx-login-tag {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .30); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hx-login-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #DFF73F; }
.hx-login-headline { margin: 28px 0 8px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.hx-login-lead { margin: 0 0 24px; color: #E7E8E9; font-size: 14px; line-height: 1.6; }
.hx-login-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hx-login-features li {
    display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.hx-login-ico {
    flex: 0 0 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: rgba(1, 173, 255, .22); color: #99D6FF;
}
.hx-login-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-login-features strong { display: block; font-size: 14px; margin-bottom: 2px; }
.hx-login-features span { display: block; color: #E7E8E9; font-size: 12.5px; line-height: 1.45; }
.hx-login-brand-foot { margin-top: auto; padding-top: 24px; font-size: 12px; color: #B9B9BD; }

/* ---- Formulario ---- */
.hx-login-form-side { flex: 1 1 50%; padding: 40px 40px 28px; display: flex; flex-direction: column; background: #fff; }
.hx-login-logo { display: block; height: 48px; width: auto; max-width: 100%; margin: 0 0 28px; align-self: flex-start; }
.hx-login-kicker { color: #005198; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hx-login-title { margin: 6px 0 4px; color: #00284C; font-size: 28px; font-weight: 700; line-height: 1.2; }
.hx-login-sub { margin: 0 0 22px; color: #71737B; font-size: 13.5px; }

.hx-field { margin-bottom: 16px; }
.hx-field label { display: block; margin-bottom: 6px; color: #00284C; font-size: 13px; font-weight: 600; }
.hx-input { position: relative; }
.hx-input > svg.hx-input-ico {
    position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
    fill: none; stroke: #71737B; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hx-input input {
    width: 100%; height: 46px; padding: 0 44px 0 44px; font-size: 14px; color: #41454F; background: #fff;
    border: 1px solid #B9B9BD; border-radius: 10px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.hx-input input::placeholder { color: #71737B; opacity: 1; }
.hx-input input:focus { outline: 0; border-color: #01ADFF; box-shadow: 0 0 0 3px rgba(1, 173, 255, .30); }
.hx-input .hx-eye {
    position: absolute; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 8px;
    background: transparent; color: #71737B; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hx-input .hx-eye:hover { background: #E7E8E9; color: #00284C; }
.hx-input .hx-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-field .field-validation-error, .hx-field .text-danger { display: block; margin-top: 4px; color: #00284C; font-size: 12.5px; font-weight: 600; }

.hx-login-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 13px; }
.hx-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #41454F; font-weight: 400; cursor: pointer; }
.hx-check input { width: 16px; height: 16px; accent-color: #005198; cursor: pointer; }

.hx-login-btn {
    width: 100%; height: 48px; border: 0; border-radius: 10px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 700;
    background: #005198; box-shadow: 0 8px 18px rgba(0, 81, 152, .30); transition: background .15s, transform .05s;
}
.hx-login-btn:hover { background: #00284C; }
.hx-login-btn:active { transform: translateY(1px); }
.hx-login-btn:focus-visible { outline: 2px solid #01ADFF; outline-offset: 2px; }

.hx-login-error {
    margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; color: #00284C; font-size: 13px; font-weight: 600;
    background: #fff; border: 1px solid #E7E8E9; border-left: 4px solid #FA4C40;
}
.hx-login-error ul { margin: 0; padding-left: 18px; }
.hx-login-error.validation-summary-valid { display: none; }
.hx-login-notice {
    margin-top: 20px; padding: 10px 14px; border-radius: 8px; color: #41454F; font-size: 12.5px; line-height: 1.5;
    background: #E7E8E9; border-left: 4px solid #005198;
}
.hx-login-copy { margin-top: auto; padding-top: 18px; color: #71737B; font-size: 12px; }

/* ---- Pantallas pequeñas ---- */
@media (max-width: 860px) {
    .hx-login-card { flex-direction: column; min-height: 0; max-width: 480px; }
    .hx-login-brand { padding: 24px 24px 20px; }
    .hx-login-headline { margin: 16px 0 0; font-size: 20px; }
    .hx-login-lead, .hx-login-features, .hx-login-brand-foot { display: none; }
    .hx-login-form-side { padding: 28px 24px 20px; }
    .hx-login-title { font-size: 24px; }
}

/* ---- Logo según el tema: negro en claro, blanco en oscuro ---- */
.hx-login-logo.hx-logo-on-dark { display: none; }
html[data-hx-theme="dark"] .hx-login-logo.hx-logo-on-light { display: none; }
html[data-hx-theme="dark"] .hx-login-logo.hx-logo-on-dark { display: block; }

/* ---- Tema oscuro ---- */
html[data-hx-theme="dark"] .hx-login-page { color: #E7E8E9; }
html[data-hx-theme="dark"] .hx-login-card { background: #003056; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
html[data-hx-theme="dark"] .hx-login-form-side { background: #003056; }
html[data-hx-theme="dark"] .hx-login-kicker { color: #99D6FF; }
html[data-hx-theme="dark"] .hx-login-title, html[data-hx-theme="dark"] .hx-field label { color: #FFFFFF; }
html[data-hx-theme="dark"] .hx-login-sub, html[data-hx-theme="dark"] .hx-login-copy { color: #B9B9BD; }
html[data-hx-theme="dark"] .hx-input input { background: #001C36; color: #E7E8E9; border-color: rgba(255, 255, 255, .30); }
html[data-hx-theme="dark"] .hx-input input::placeholder { color: #B9B9BD; }
html[data-hx-theme="dark"] .hx-input > svg.hx-input-ico, html[data-hx-theme="dark"] .hx-input .hx-eye { color: #B9B9BD; stroke: #B9B9BD; }
html[data-hx-theme="dark"] .hx-input .hx-eye svg { stroke: currentColor; }
html[data-hx-theme="dark"] .hx-input .hx-eye:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
html[data-hx-theme="dark"] .hx-field .field-validation-error, html[data-hx-theme="dark"] .hx-field .text-danger { color: #FFFFFF; }
html[data-hx-theme="dark"] .hx-check { color: #E7E8E9; }
html[data-hx-theme="dark"] .hx-login-btn { background: #01ADFF; color: #00284C; box-shadow: 0 8px 18px rgba(1, 173, 255, .25); }
html[data-hx-theme="dark"] .hx-login-btn:hover { background: #99D6FF; }
html[data-hx-theme="dark"] .hx-login-error { background: #001F3D; border-color: rgba(255, 255, 255, .16); border-left-color: #FA4C40; color: #FFFFFF; }
html[data-hx-theme="dark"] .hx-login-notice { background: rgba(255, 255, 255, .08); color: #E7E8E9; border-left-color: #01ADFF; }

/* ---- Pie de página fijo al borde inferior, sin importar el tamaño de la ventana ---- */
.hx-login-page { flex-direction: column; justify-content: flex-start; align-items: center; }
.hx-login-card { margin: auto; }
.hx-login-pagefoot { flex: 0 0 auto; padding: 16px 0 0; color: #B9B9BD; font-size: 12px; text-align: center; }
