@charset "utf-8";

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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Lato, 'Helvetica Neue', Arial, sans-serif;
    background: #eef1f8;
}

/* ── Layout principal ── */
#login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Panel izquierdo (branding) ── */
#login-brand {
    flex: 1;
    background: linear-gradient(145deg, #06299a 0%, #083ac3 55%, #1e50d6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

#login-brand::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -100px;
    left: -120px;
}

#login-brand::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -80px;
    right: -80px;
}

.brand-logo {
    width: 140px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
    z-index: 1;
}

.brand-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.2;
    z-index: 1;
    margin-bottom: 14px;
}

.brand-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    text-align: center;
    max-width: 320px;
    line-height: 1.6;
    z-index: 1;
}

.brand-divider {
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    margin: 22px auto;
    z-index: 1;
}

.brand-badges {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    z-index: 1;
}

.brand-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.brand-bg-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: url(../img/mercados_muni.svg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

/* ── Panel derecho (formulario) ── */
#login-form-panel {
    width: 480px;
    min-width: 360px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 50px 30px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.08);
}

.form-header {
    margin-bottom: 36px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #8a8fa8;
}

/* ── Campos del formulario ── */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
}

.input-wrap {
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a8c0;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #e0e4f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #f5f7fc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap input:focus {
    border-color: #083ac3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 74, 236, 0.1);
}

.input-wrap input:focus + i,
.input-wrap:focus-within i {
    color: #083ac3;
}

/* toggle contraseña */
.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0a8c0;
    font-size: 16px;
    pointer-events: all;
    transition: color 0.2s;
}
.toggle-pass:hover { color: #083ac3; }

/* ── Mensaje de error ── */
#message_resume {
    font-size: 13px;
    color: #dc2626;
    font-weight: 600;
    min-height: 20px;
    margin-bottom: 10px;
    text-align: center;
}

/* ── Botón de login ── */
#btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #083ac3 0%, #1e50d6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(20, 74, 236, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

#btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(20, 74, 236, 0.45);
}

#btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(20, 74, 236, 0.3);
}

/* ── Olvidé contraseña ── */
.recovery-link {
    text-align: center;
    margin-top: 18px;
}

.recovery-link a {
    font-size: 13px;
    color: #083ac3;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.recovery-link a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── Footer ── */
#pies {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #f5f7fc;
    margin-top: 40px;
}

#pies small {
    font-size: 11.5px;
    color: #b0b5cb;
    line-height: 1.8;
    display: block;
}

/* ── Estados legacy (compatibilidad con js) ── */
.hidden { display: none !important; }
.message { color: #dc2626; font-weight: bold; }

/* ── Responsive ── */
@media (max-width: 860px) {
    #login-brand { display: none; }
    #login-form-panel {
        width: 100%;
        min-width: unset;
        box-shadow: none;
        padding: 40px 28px 24px;
    }
}

@media (max-width: 400px) {
    #login-form-panel { padding: 32px 18px 20px; }
}

/* ── Mantener clases viejas que usa el JS ── */
.recovery-form button,
.password-btn, .recov_code_button, .recov_user, .accept {
    background: #083ac3 !important;
    color: #fff !important;
}
.recovery-form label { color: #636363; }
.recovery-form h2 { color: #636363; text-align: center; }
.disc { font-size: 11px !important; color: #919493 !important; text-align: justify !important; padding: 0 18px !important; }
.color_titulo { color: #06299a; }
.center { text-align: center; }
