/* ============================================================
   FSG UI Kit — Login Admin
   Página standalone (sin template.principal).
   Tokens de marca: navy, blue, red, green, orange.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --navy:   #060821;
    --blue:   #0D5CA7;
    --red:    #DD2928;
    --green:  #7EAB39;
    --orange: #F2931C;
    --n-50:   #F7F8FB;
    --n-100:  #EDEFF4;
    --n-200:  #DDE1EA;
    --n-300:  #C2C8D6;
    --n-500:  #6B7385;
    --n-700:  #363D4F;
    --r-md:   12px;
    --r-lg:   16px;
    --shadow-lg: 0 18px 50px rgba(6,8,33,.18);
    --font-h: 'Raleway',   sans-serif;
    --font-b: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font-b);
    color: var(--navy);
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}

/* ── Layout split ─────────────────────────────────────── */
.la-wrap { display: flex; min-height: 100vh; }

/* Panel brand (izquierdo, visible ≥860px) */
.la-brand {
    display: none;
    width: 46%;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 52px;
}

/* Panel form (derecho) */
.la-form {
    width: 100%;
    background: var(--n-50);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    min-height: 100vh;
}

@media (min-width: 860px) {
    .la-brand { display: flex; }
    .la-form  { width: 54%; }
}

/* ── Decoraciones de fondo (panel brand) ─────────────── */
.la-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
}
.la-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.la-orb-1 { width: 420px; height: 420px; top: -120px;  right: -130px; background: radial-gradient(circle, rgba(13,92,167,.28) 0%, transparent 70%); }
.la-orb-2 { width: 260px; height: 260px; bottom: -80px; left: -80px;  background: radial-gradient(circle, rgba(13,92,167,.20) 0%, transparent 70%); }
.la-orb-3 { width: 150px; height: 150px; bottom: 160px; right: 50px;  background: radial-gradient(circle, rgba(242,147,28,.18) 0%, transparent 70%); }
.la-orb-4 { width: 80px;  height: 80px;  top: 200px;    left: 50px;   background: radial-gradient(circle, rgba(126,171,57,.18) 0%, transparent 70%); }

/* ── Contenido del panel brand ───────────────────────── */
.la-brand-body {
    position: relative;
    z-index: 2;
    max-width: 360px;
}

.la-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.48);
    border: 1px solid rgba(255,255,255,.12);
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 28px;
}
.la-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-block;
}

.la-brand-body h2 {
    font-family: var(--font-h);
    font-weight: 800;
    font-style: italic;
    font-size: 44px;
    line-height: 1.03;
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.la-brand-body h2 em { font-style: normal; color: var(--orange); }

.la-brand-sub {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.32);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.la-brand-desc {
    color: rgba(255,255,255,.55);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.la-brand-desc strong { color: rgba(255,255,255,.88); }

/* Barra de colores de marca */
.la-colorbar {
    display: flex;
    gap: 7px;
    margin-bottom: 40px;
}
.la-colorbar span { height: 6px; border-radius: 99px; flex: 1; }

/* Features */
.la-features { display: flex; flex-direction: column; gap: 14px; }
.la-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.7);
    font-size: 13.5px;
    line-height: 1.45;
}
.la-feat-ic {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: none;
    color: rgba(255,255,255,.82);
}

/* ── Tarjeta del formulario ───────────────────────────── */
.la-card { width: 100%; max-width: 430px; }

/* Cabecera solo en móvil */
.la-mobile-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.la-mobile-top img { height: 36px; width: auto; }
.la-mob-pill {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--n-500);
    background: var(--n-100);
    padding: 4px 10px;
    border-radius: 99px;
}
@media (min-width: 860px) { .la-mobile-top { display: none; } }

.la-card h1 {
    font-family: var(--font-h);
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -.01em;
    color: var(--navy);
    margin-bottom: 6px;
}
.la-card .la-sub {
    color: var(--n-500);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.55;
}

/* ── Alert ───────────────────────────────────────────── */
.la-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    margin-bottom: 22px;
    border: 1px solid;
    animation: la-pop .2s;
}
.la-alert.show { display: flex; }
@keyframes la-pop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; } }
.la-alert i { flex: none; margin-top: 1px; }
.la-alert.al-err     { background: #FBEDED; border-color: #F2C9C9; color: #a31a19; }
.la-alert.al-success { background: #F1F8E8; border-color: #D6E9BC; color: #4d7016; }

/* ── Campos ──────────────────────────────────────────── */
.la-field { margin-bottom: 18px; }
.la-field label {
    display: block;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 12.5px;
    color: var(--n-700);
    margin-bottom: 7px;
    letter-spacing: .01em;
}
.la-field label .req { color: var(--red); }

.la-iw { position: relative; display: flex; align-items: center; }

.la-iw .la-fi {
    position: absolute;
    left: 14px;
    color: var(--n-300);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    transition: color .18s;
}

.la-iw input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    font-family: var(--font-b);
    font-size: 14.5px;
    color: var(--navy);
    background: #fff;
    border: 1.5px solid var(--n-200);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.la-iw input::placeholder { color: var(--n-300); font-size: 14px; }
.la-iw input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3.5px rgba(13,92,167,.10);
}
.la-iw input:focus ~ .la-fi { color: var(--blue); }
.la-iw input.la-err  { border-color: var(--red); box-shadow: 0 0 0 3px rgba(221,41,40,.09); }
.la-iw input.la-pw   { padding-right: 46px; }

/* Toggle contraseña */
.la-pwd-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--n-300);
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    transition: color .15s, background .15s;
}
.la-pwd-btn:hover { color: var(--navy); background: var(--n-100); }

/* Error inline */
.la-ferr {
    font-size: 12px;
    color: var(--red);
    margin-top: 5px;
    display: none;
}
.la-ferr.show { display: block; }

/* ── Fila recordar / olvidé ──────────────────────────── */
.la-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
}
.la-tog-wrap { display: flex; align-items: center; gap: 9px; }

.la-tog {
    position: relative;
    width: 38px; height: 21px;
    flex: none; display: inline-block;
}
.la-tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.la-tk {
    position: absolute;
    inset: 0;
    background: var(--n-300);
    border-radius: 99px;
    cursor: pointer;
    transition: background .2s;
}
.la-tk::before {
    content: '';
    position: absolute;
    width: 15px; height: 15px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.la-tog input:checked + .la-tk { background: var(--blue); }
.la-tog input:checked + .la-tk::before { transform: translateX(17px); }

.la-tog-label { font-size: 13px; color: var(--n-700); cursor: pointer; user-select: none; }

.la-forgot {
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.la-forgot:hover { opacity: .7; }

/* ── Botón Ingresar ──────────────────────────────────── */
.la-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--blue) 0%, #0a4d8c 100%);
    color: #fff;
    font-family: var(--font-h);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: .02em;
    transition: filter .18s, transform .1s, box-shadow .18s;
    box-shadow: 0 4px 18px rgba(13,92,167,.32);
}
.la-btn:hover:not(:disabled) {
    filter: brightness(1.1);
    box-shadow: 0 6px 24px rgba(13,92,167,.42);
}
.la-btn:active:not(:disabled) { transform: scale(.98); }
.la-btn:disabled {
    background: var(--n-200);
    color: var(--n-500);
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner dentro del botón */
.la-spin {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: la-giro .7s linear infinite;
    display: none; flex: none;
}
@keyframes la-giro { to { transform: rotate(360deg); } }

/* ── Divisor ─────────────────────────────────────────── */
.la-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
}
.la-divider::before, .la-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--n-200);
}
.la-divider span {
    font-size: 11px;
    font-family: var(--font-h);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--n-500);
    white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────────── */
.la-footer { text-align: center; }
.la-footer p { font-size: 12.5px; color: var(--n-500); line-height: 1.8; }
.la-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.la-footer a:hover { text-decoration: underline; }
.la-footer .fa-whatsapp { color: #25d366; }
