/* ═══════════════════════════════════════════════
   LOGIN — JornadaElectrónica
   Paleta: #1e293b (oscuro) · #3b82f6 (azul) · #f8fafc (claro)
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --dark:    #1e293b;
    --darker:  #0f172a;
    --blue:    #3b82f6;
    --blue-d:  #2563eb;
    --light:   #f8fafc;
    --muted:   #64748b;
    --border:  #e2e8f0;
    --white:   #ffffff;
    --radius:  14px;
}

body.login-body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── Layout dos columnas ─────────────────────── */
.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Columna izquierda — branding */
.login-brand {
    flex: 0 0 42%;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos */
.login-brand::before,
.login-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.login-brand::before {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
    top: -80px; right: -100px;
}
.login-brand::after {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(99,102,241,.14) 0%, transparent 70%);
    bottom: 60px; left: -60px;
}

.brand-top {
    position: relative; z-index: 1;
}

.brand-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.7rem;
    color: var(--white);
    letter-spacing: -.01em;
    line-height: 1.1;
}

.brand-logo span {
    color: var(--blue);
}

.brand-tagline {
    margin-top: .6rem;
    font-size: .78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
}

.brand-center {
    position: relative; z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.brand-headline {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.1rem;
}

.brand-headline em {
    font-style: normal;
    color: var(--blue);
}

.brand-desc {
    font-size: .88rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 320px;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: .3rem .75rem;
    font-size: .75rem;
    color: #cbd5e1;
    font-weight: 500;
}

.brand-pill i { color: var(--blue); font-size: .7rem; }

.brand-bottom {
    position: relative; z-index: 1;
    font-size: .72rem;
    color: #475569;
}

/* Columna derecha — formulario */
.login-form-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--white);
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card-header {
    margin-bottom: 2.2rem;
}

.login-card-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.9rem;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: .45rem;
}

.login-card-header p {
    font-size: .85rem;
    color: var(--muted);
}

/* Campos */
.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.input-icon {
    position: relative;
}

.input-icon .icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: .8rem 2.8rem .8rem 2.6rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .92rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: var(--light);
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}

.input-icon input::placeholder { color: #cbd5e1; }

.input-icon input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: .85rem;
    transition: color .2s;
}
.toggle-password:hover { color: var(--blue); }

/* Botón */
.btn-login {
    width: 100%;
    padding: .85rem 1.5rem;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .01em;
}

.btn-login:hover {
    background: var(--darker);
    box-shadow: 0 6px 20px rgba(15,23,42,.2);
    transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.4rem 0;
    color: #cbd5e1;
    font-size: .75rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Footer card */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .72rem;
    color: #94a3b8;
}

/* ── Responsive móvil ────────────────────────── */
@media (max-width: 768px) {
    .login-wrapper { flex-direction: column; }

    .login-brand {
        flex: none;
        padding: 1.8rem 1.5rem 1.5rem;
    }

    .brand-center { display: none; }

    .brand-headline { display: none; }

    .login-brand::before { width: 200px; height: 200px; top: -40px; right: -50px; }
    .login-brand::after  { display: none; }

    .login-form-col {
        padding: 2rem 1.5rem 1.5rem;
        align-items: flex-start;
    }

    .login-card-header h2 { font-size: 1.5rem; }
}
