/* Pantalla de inicio de sesión (views/pages/login.php) */
body { background: #fff; }
#auth { height: auto; min-height: 100vh; overflow-x: hidden; }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 520px) 1fr;
    min-height: 100vh;
}

/* Panel del formulario */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: #fff; }
.auth-card { width: 100%; max-width: 380px; }
.auth-logo { display: block; width: auto; max-width: 200px; max-height: 96px; margin-bottom: 2rem; }
.auth-title { margin-bottom: .35rem; font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: #1d2433; }
.auth-subtitle { margin-bottom: 1.75rem; font-size: .95rem; color: #6b7385; }

.auth-field { margin-bottom: 1.1rem; }
.auth-field label { display: block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 700; color: #344054; }
.auth-input { position: relative; }
.auth-input > .bi { position: absolute; top: 50%; left: .9rem; font-size: 1.05rem; color: #8a93a6; transform: translateY(-50%); pointer-events: none; }
.auth-input .form-control {
    height: 48px;
    padding: 0 2.75rem 0 2.6rem;
    font-size: .95rem;
    border-color: #d5dbe6;
    border-radius: 10px;
}
.auth-input .form-control:focus { border-color: #435ebe; box-shadow: 0 0 0 4px rgba(67, 94, 190, .14); }
.auth-toggle {
    position: absolute;
    top: 50%;
    right: .4rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #8a93a6;
    background: transparent;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
}
.auth-toggle:hover { color: #1d2433; background: #f3f5f9; }

#btnlogin { height: 50px; margin-top: .5rem; font-size: 1rem; font-weight: 700; border-radius: 10px; box-shadow: 0 8px 20px rgba(67, 94, 190, .28); }
#mensajeAlerta .alert { margin-bottom: 1.1rem; font-size: .875rem; border-radius: 10px; }
.auth-foot { margin: 2.5rem 0 0; font-size: .8125rem; color: #98a1b3; text-align: center; }

/* Panel de marca */
.auth-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 10% 90%, rgba(255, 193, 7, .22) 0, rgba(255, 193, 7, 0) 40%),
        linear-gradient(135deg, #1f2f74 0%, #2d449d 45%, #435ebe 100%);
}
.auth-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 46px);
    pointer-events: none;
}
.auth-hero__content { position: relative; max-width: 520px; }
.auth-hero__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .35rem .8rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
}
.auth-hero h2 { margin-bottom: 1.5rem; font-size: 2.25rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.auth-hero ul { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.auth-hero li { display: flex; align-items: center; gap: .75rem; font-size: 1rem; color: rgba(255, 255, 255, .9); }
.auth-hero li .bi {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, .14);
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
}
