/* ---------------------------------------------------------------
   EqWeb 4.0 -- Login  (dark premium, sin dependencia de imagenes)
   Adaptado para MVC5 / Bootstrap 4
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.eq-login-body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #070b14;
    overflow-x: hidden;
}

/* ---------------------------------------------------------------
   CONTENEDOR PRINCIPAL
   --------------------------------------------------------------- */
.eq-login-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---------------------------------------------------------------
   PANEL IZQUIERDO -- fondo generativo con canvas + contenido
   --------------------------------------------------------------- */
.eq-login-left {
    flex: 0 0 52%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 5rem;
    overflow: hidden;
    background: #080c1a;
}

/* Canvas de particulas -- z-index 0 */
#eq-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .7;
}

/* Degradado suave encima del canvas */
.eq-login-left-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 15% 50%, rgba(99,102,241,.22) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 85% 20%, rgba(139,92,246,.15) 0%, transparent 60%),
        linear-gradient(to right, rgba(8,12,26,.0) 60%, rgba(7,11,20,.95) 100%);
    z-index: 1;
}

/* Todo el contenido del panel izquierdo va encima */
.eq-login-left-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

/* -- Logo -------------------------------------------------- */
.eq-login-logo {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 3.2rem;
}

/* SVG logo inline */
.eq-logo-svg {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(99,102,241,.7));
}

.eq-login-logo-text {
    line-height: 1.15;
}
.eq-login-logo-text strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
}
.eq-login-logo-text span {
    font-size: .68rem;
    font-weight: 500;
    color: rgba(255,255,255,.38);
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* -- Titular ----------------------------------------------- */
.eq-login-headline {
    font-size: 2.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.035em;
    margin-bottom: 1.2rem;
}
.eq-login-headline em {
    font-style: normal;
    background: linear-gradient(90deg, #818cf8 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Subtitulo --------------------------------------------- */
.eq-login-sub {
    color: rgba(255,255,255,.48);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 2.8rem;
    max-width: 360px;
}

/* -- Features ---------------------------------------------- */
.eq-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.eq-features li {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255,255,255,.65);
    font-size: .84rem;
}
.eq-feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    flex-shrink: 0;
}
.eq-features li:nth-child(1) .eq-feat-icon { background: rgba(99,102,241,.22);  color: #818cf8; }
.eq-features li:nth-child(2) .eq-feat-icon { background: rgba(16,185,129,.18);  color: #34d399; }
.eq-features li:nth-child(3) .eq-feat-icon { background: rgba(245,158,11,.18);  color: #fbbf24; }
.eq-features li:nth-child(4) .eq-feat-icon { background: rgba(239,68,68,.18);   color: #f87171; }

/* ---------------------------------------------------------------
   PANEL DERECHO -- formulario
   --------------------------------------------------------------- */
.eq-login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    position: relative;
    background: #070b14;
}

/* Glow decorativo detras del form */
.eq-login-right::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Separador vertical sutil */
.eq-login-right::after {
    content: '';
    position: absolute;
    left: 0; top: 10%; bottom: 10%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(99,102,241,.35) 30%,
        rgba(139,92,246,.35) 70%,
        transparent);
}

.eq-login-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* -- Header tarjeta ---------------------------------------- */
.eq-card-header { margin-bottom: 1.8rem; }
.eq-card-header h4 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin-bottom: .3rem;
}
.eq-card-header p { color: #475569; font-size: .875rem; margin-bottom: 0; }

/* -- Alert error ------------------------------------------- */
.eq-alert {
    display: none;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 9px;
    color: #fca5a5;
    font-size: .82rem;
    padding: .65rem .9rem;
    margin-bottom: 1.1rem;
    align-items: center;
    gap: .5rem;
}
.eq-alert.show { display: flex; }

/* -- Campos ------------------------------------------------ */
.eq-field { margin-bottom: 1.1rem; }
.eq-field label {
    display: block;
    font-size: .73rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: .45rem;
}

.eq-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.eq-input-icon {
    position: absolute;
    left: .9rem;
    color: #334155;
    font-size: .95rem;
    pointer-events: none;
    z-index: 2;
}
.eq-input {
    width: 100%;
    padding: .76rem 1rem .76rem 2.6rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: .9rem;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
    -webkit-appearance: none;
    font-family: inherit;
}
.eq-input::placeholder { color: #1e293b; }
.eq-input:focus {
    background: rgba(99,102,241,.08);
    border-color: rgba(99,102,241,.55);
    box-shadow: 0 0 0 3px rgba(99,102,241,.14);
}
/* Autofill dark */
.eq-input:-webkit-autofill,
.eq-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0d1525 inset;
    -webkit-text-fill-color: #e2e8f0;
    border-color: rgba(99,102,241,.4);
}

.eq-input-eye {
    position: absolute;
    right: .75rem;
    background: none;
    border: none;
    color: #334155;
    cursor: pointer;
    padding: .2rem .3rem;
    font-size: .95rem;
    z-index: 2;
    transition: color .15s;
}
.eq-input-eye:hover { color: #64748b; }

/* -- Boton login ------------------------------------------- */
.eq-btn-login {
    width: 100%;
    padding: .82rem 1rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(99,102,241,.38);
    transition: opacity .18s, transform .14s, box-shadow .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: inherit;
}
.eq-btn-login:hover  { opacity:.9; transform:translateY(-1px); box-shadow:0 7px 28px rgba(99,102,241,.48); }
.eq-btn-login:active { transform: translateY(0); }
.eq-btn-login:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.eq-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eq-spin .7s linear infinite;
}
@keyframes eq-spin { to { transform: rotate(360deg); } }

/* -- Boton secundario -------------------------------------- */
.eq-btn-secondary {
    width: 100%;
    padding: .78rem 1rem;
    margin-top: .55rem;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.22);
    border-radius: 10px;
    color: #fca5a5;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .18s;
    font-family: inherit;
}
.eq-btn-secondary:hover { background: rgba(239,68,68,.18); }
.eq-btn-secondary.show  { display: flex; }

/* -- Links ------------------------------------------------- */
.eq-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.3rem;
}
.eq-links a {
    color: #4f46e5;
    font-size: .78rem;
    text-decoration: none;
    transition: color .15s;
}
.eq-links a:hover { color: #a78bfa; }

/* -- Footer ------------------------------------------------ */
.eq-login-footer {
    margin-top: 2rem;
    text-align: center;
    color: #1e293b;
    font-size: .72rem;
}
.eq-login-footer a { color: #334155; text-decoration: none; }
.eq-login-footer a:hover { color: #6366f1; }

/* ---------------------------------------------------------------
   MODALES DARK (Bootstrap 4)
   --------------------------------------------------------------- */
.eq-modal .modal-content {
    background: #0f1628;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.eq-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 1rem 1.25rem .8rem;
}
.eq-modal .modal-title { font-size: .88rem; font-weight: 600; color: #f1f5f9; }
.eq-modal .modal-body  { padding: 1rem 1.25rem; font-size: .84rem; color: #64748b; }
.eq-modal .modal-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: .75rem 1.25rem;
    gap: .5rem;
}
/* Bootstrap 4 close button */
.eq-modal .close {
    color: rgba(255,255,255,.4);
    text-shadow: none;
    opacity: 1;
}
.eq-modal .close:hover { color: rgba(255,255,255,.8); }

.eq-modal-error .modal-header { background: rgba(239,68,68,.1); }
.eq-modal-error .modal-title  { color: #fca5a5; }
.eq-modal-error .modal-body   { color: #fca5a5; }

.eq-modal-btn {
    padding: .45rem 1.1rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity .15s;
    font-family: inherit;
}
.eq-modal-btn:hover         { opacity: .85; }
.eq-modal-btn-cancel        { background: rgba(255,255,255,.07); color: #94a3b8; }
.eq-modal-btn-confirm       { background: linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; }
.eq-modal-btn-danger        { background: rgba(239,68,68,.8); color: #fff; }
.eq-modal-btn-close         { background: rgba(255,255,255,.07); color: #94a3b8; }

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .eq-login-left          { display: none; }
    .eq-login-right::after  { display: none; }
    .eq-login-right         { padding: 2.5rem 1.5rem; }
    body.eq-login-body      { background: #070b14; }
}
@media (max-width: 480px) {
    .eq-login-right  { padding: 2rem 1rem; }
    .eq-login-card   { max-width: 100%; }
}
