﻿:root {
    /* Azul más claro (panel izquierda) */
    --blue-900: #1b4f8a;
    --blue-800: #2563b6;
    --blue-700: #2f76d4;
    --blue-600: #4a90e2;
    --green-600: #22c55e;
    --green-700: #16a34a;
    --text: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --border: rgba(15, 23, 42, .10);
    --shadow: 0 24px 60px rgba(2, 6, 23, .14);
    --radius: 16px;
}

html, body {
    height: 100%;
}

body {
    background: radial-gradient(1200px 600px at 15% 20%, rgba(74,144,226,.14), transparent 60%), radial-gradient(900px 700px at 85% 70%, rgba(34,197,94,.10), transparent 55%), linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    overflow-x: hidden;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* Panel izquierdo */
.brand-panel {
    position: relative;
    /*color: #eef6ff;*/
    background-color: #001347; /*#0f2744*/
    color: #ffffff;
    /* Azul más claro + degradado suave */
    /*background: radial-gradient(900px 600px at 10% 15%, rgba(255,255,255,.16), transparent 55%), radial-gradient(700px 500px at 85% 70%, rgba(34,197,94,.12), transparent 60%), linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 40%, var(--blue-600) 100%);*/
    overflow: hidden;
}

    .brand-panel::before {
        content: "";
        position: absolute;
        inset: -40px;
        background-image: repeating-linear-gradient( -45deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 38px );
        opacity: .28;
        pointer-events: none;
    }

.brand-inner {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 56px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    border-radius: 999px;
    font-size: .85rem;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.brand-title {
    font-weight: 700;
    line-height: 1.12;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin-bottom: .75rem;
}

.brand-subtitle {
    color: rgba(238,246,255,.88);
    font-size: 1.02rem;
    max-width: 78ch;
    margin-bottom: 1.6rem;
}

.feature {
    display: flex;
    gap: .8rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    margin-bottom: .75rem;
}

    .feature i {
        font-size: 1.2rem;
        color: #eafff2;
        margin-top: .1rem;
    }

    .feature b {
        display: block;
        font-size: .98rem;
        color: #fff;
    }

    .feature span {
        display: block;
        color: rgba(238,246,255,.84);
        font-size: .88rem;
        margin-top: .1rem;
    }

/* Panel derecho */
.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-height: 100vh;
    background: #f7f9fc; /* fondo uniforme */
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 28px 22px;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

    .logo-row img {
        height: 56px;
        width: auto;
        object-fit: contain;
    }

.login-h {
    margin: 6px 0 2px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .2px;
    font-size: 1.90rem;
}

.muted {
    color: var(--muted);
    font-size: .95rem;
}

.input-wrap {
    position: relative;
    margin-bottom: 14px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 1.05rem;
}

    .toggle-password:hover {
        color: var(--blue-800);
    }

.alert-custom {
    background: #fff1f2;
    border: 1px solid rgba(225,29,72,.25);
    color: #9f1239;
    border-radius: 12px;
    padding: .75rem .9rem;
    font-size: .92rem;
    margin-bottom: 14px;
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0 14px;
}

/* BOTÓN: azul sólido, cuadrado */
.btn-login {
    width: 100%;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 6px;
    padding: .78rem 1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
    background: #1d76d3;
    box-shadow: 0 10px 22px rgba(29,118,211,.18);
}

    .btn-login:hover {
        filter: brightness(.98);
    }

    .btn-login:active {
        transform: scale(.99);
    }

.card-footer {
    margin-top: 0px;
    padding-top: 0px;
    border-top: 1px solid rgba(15,23,42,.08);
    color: #64748b;
    font-size: .82rem;
    text-align: center;
}

.form-section-gap {
    margin-top: 14px; /* ajusta a 12-18px si quieres más/menos */
}

@media (max-width: 991.98px) {
    .brand-panel {
        min-height: 320px;
    }
}
