/* ============================================================
   INVESTING · LOGIN V2
   Nueva pantalla de acceso — diseño full-screen con paleta de
   marca (azul marino + cian) sobre fondo de socavón minero.
   Hoja de estilos autocontenida: no depende del template base.
   ============================================================ */

:root {
    --iv-navy:        #1b2a6b; /* azul marino del logotipo */
    --iv-navy-panel:  #202e78; /* panel de accesos          */
    --iv-navy-deep:   #131d4d; /* sombras / borde panel      */
    --iv-teal:        #0096b7; /* cian del símbolo           */
    --iv-cyan:        #16c0e3; /* cian de acento (botón)     */
    --iv-cyan-hover:  #3ad2f0;
    --iv-field-bg:    #0c1126; /* campos de formulario       */
    --iv-field-border:#2c3a86;
    --iv-text:        #ffffff;
    --iv-text-soft:   #c7cede;
    --iv-text-muted:  #8d97bf;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body.iv-login {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: var(--iv-text);
    background: #06080f;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---- Lienzo principal -------------------------------------- */
.iv-login__stage {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url("../../images/login/v2/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Degradado oscuro para legibilidad del texto a la izquierda */
.iv-login__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6,8,15,0.92) 0%, rgba(6,8,15,0.55) 38%, rgba(6,8,15,0.10) 65%, rgba(6,8,15,0.35) 100%),
        linear-gradient(0deg, rgba(6,8,15,0.85) 0%, rgba(6,8,15,0.00) 45%);
    pointer-events: none;
}

.iv-login__stage > * { position: relative; z-index: 1; }

/* ---- Logo superior ----------------------------------------- */
.iv-login__brand {
    padding: 38px 56px;
}
.iv-login__brand img { height: 72px; width: auto; display: block; }

/* ---- Cuerpo (texto izquierda + panel derecha) -------------- */
.iv-login__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 0 56px 40px;
}

/* ---- Bloque editorial (izquierda) -------------------------- */
.iv-login__intro {
    max-width: 560px;
    flex: 1 1 auto;
}
.iv-login__headline {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 0.98;
    font-size: clamp(48px, 6vw, 92px);
    margin: 0 0 28px;
    letter-spacing: -0.5px;
}
.iv-login__headline em {
    display: block;
    font-style: italic;
    color: var(--iv-cyan);
}
.iv-login__headline em span { color: var(--iv-text); font-style: normal; }
.iv-login__lead {
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.6;
    color: var(--iv-text-soft);
    max-width: 520px;
    margin: 0;
}

/* ---- Panel de accesos (derecha) ---------------------------- */
.iv-login__panel {
    flex: 0 0 420px;
    width: 420px;
    background-color: #1b2a6b;
    background-image:
        radial-gradient(120% 140% at 85% -20%, rgba(22, 192, 227, 0.28) 0%, rgba(22, 192, 227, 0) 55%),
        linear-gradient(to top, #0e1736 0%, #1b2a6b 50%, #2f6386 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    padding: 40px 40px 36px;
}
.iv-login__panel-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 28px;
}

.iv-field { margin-bottom: 22px; }
.iv-field__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.iv-field__label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--iv-text-muted);
    font-weight: 600;
}
.iv-field__link {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--iv-text-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.iv-field__link:hover { color: var(--iv-cyan); }

.iv-input {
    width: 100%;
    background: var(--iv-field-bg);
    border: 1px solid var(--iv-field-border);
    color: var(--iv-text);
    font-size: 15px;
    padding: 15px 16px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.iv-input::placeholder { color: #5a6494; }
.iv-input:focus {
    border-color: var(--iv-cyan);
    box-shadow: 0 0 0 3px rgba(22,192,227,0.18);
}
.iv-input.is-invalid { border-color: #ff6b6b; }

.iv-error {
    display: block;
    margin-top: 8px;
    color: #ff9a9a;
    font-size: 12.5px;
}

.iv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    cursor: pointer;
    background: var(--iv-cyan);
    color: var(--iv-navy-deep);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 18px;
    margin-top: 6px;
    transition: background .15s ease, transform .05s ease;
}
.iv-btn:hover { background: var(--iv-cyan-hover); }
.iv-btn:active { transform: translateY(1px); }

.iv-login__register {
    display: block;
    text-align: center;
    margin-top: 26px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--iv-text-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3px;
    transition: color .15s ease, border-color .15s ease;
}
.iv-login__register:hover { color: var(--iv-cyan); border-color: var(--iv-cyan); }

.iv-alert {
    background: rgba(255,107,107,0.12);
    border: 1px solid rgba(255,107,107,0.4);
    color: #ffc9c9;
    font-size: 13px;
    padding: 12px 14px;
    margin-bottom: 22px;
}

/* ---- Pie ---------------------------------------------------- */
.iv-login__footer {
    padding: 0 56px 26px;
    text-align: right;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 900px) {
    .iv-login__body {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 0 28px 32px;
        gap: 32px;
    }
    .iv-login__brand { padding: 26px 28px; }
    .iv-login__intro { max-width: none; }
    .iv-login__headline { font-size: clamp(40px, 11vw, 64px); }
    .iv-login__panel { flex: none; width: 100%; max-width: 460px; }
    .iv-login__footer { text-align: center; padding: 0 28px 22px; }
}

@media (max-width: 480px) {
    .iv-login__panel { padding: 30px 24px 28px; }
    .iv-login__brand img { height: 58px; }
}
