/* ==========================================================================
   Eco Guacaipuro - Pantallas Públicas y de Autenticación (Diseño Split-Screen)
   (index.php, forgot-password.php, forgot-username.php, verificarsolvencia.php)
   Integrado con el sistema de diseño Listado Moderno (lst-*)
   Paleta institucional: Negro #000000 -> Verde #00B02D / Neutros Slate
   ========================================================================== */

/* ---------- Reset y contenedor general Split-Screen ---------- */
body.sotam-auth-body,
body.fondo.sotam-auth-body {
    background-color: #f1f5f9 !important;
    background-image: none !important;
    min-height: 100vh;
    margin: 0;
    padding: 0 !important;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.sotam-auth-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #f1f5f9;
}

/* ---------- Panel izquierdo institucional (Verde) ---------- */
.sotam-auth-aside {
    position: relative;
    width: 44%;
    min-width: 380px;
    max-width: 560px;
    background-color: #00B02D;
    color: #ffffff;
    padding: 44px 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 1;
}

/* Figuras geométricas decorativas del panel izquierdo */
.sotam-auth-aside::before {
    content: "";
    position: absolute;
    left: -90px;
    top: 38%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(180, 75, 8, 0.28);
    pointer-events: none;
    z-index: -1;
}

.sotam-auth-aside::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    pointer-events: none;
    z-index: -1;
}

.sotam-aside-stripe {
    position: absolute;
    top: -10%;
    right: 68px;
    width: 28px;
    height: 130%;
    background: rgba(154, 52, 18, 0.22);
    transform: rotate(14deg);
    pointer-events: none;
    z-index: -1;
}

.sotam-aside-brand {
    display: flex;
    align-items: flex-start;
}

.sotam-aside-brand img.municipio {
    width: 250px;
    max-width: 100%;
    height: auto;
    padding-bottom: 0;
}

.sotam-aside-hero {
    margin: auto 0;
    padding: 32px 0;
    max-width: 400px;
}

.sotam-aside-heading {
    margin: 0 0 18px 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.sotam-aside-white {
    display: block;
    color: #ffffff;
}

.sotam-aside-black {
    display: block;
    color: #0f172a;
}

.sotam-aside-text {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 400;
}

.sotam-aside-copy {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
}

/* ---------- Panel derecho del formulario (Fondo claro) ---------- */
.sotam-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 36px;
    background-color: #f1f5f9;
}

.page.sotam-auth-page,
.sotam-auth-page {
    width: 100%;
    max-width: 440px;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.sotam-auth-page .page-content {
    width: 100%;
    padding: 0 !important;
    margin: 0 auto;
}

/* ---------- Tarjeta principal de autenticación ---------- */
.sotam-auth-card {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #00B02D;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    text-align: left;
}

.sotam-auth-card .panel-body {
    padding: 36px 36px 30px;
}

/* ---------- Marca y encabezado de la tarjeta ---------- */
.sotam-auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.sotam-auth-brand img {
    width: 165px;
    max-width: 100%;
    height: auto;
}

.sotam-auth-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sotam-auth-title {
    margin: 0 0 6px 0;
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.sotam-auth-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
}

/* ---------- Formulario y campos ---------- */
.sotam-auth-form {
    margin: 0 0 20px 0;
}

.sotam-auth-field {
    margin-bottom: 16px;
    text-align: left;
}

.sotam-auth-field .lst-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sotam-auth-field .lst-field-label i {
    color: #00B02D;
    font-size: 14px;
}

.sotam-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sotam-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 17px;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 2;
}

.sotam-input-wrap .form-control.lst-input {
    height: 44px;
    padding-left: 38px !important;
    padding-right: 12px !important;
    font-size: 13.5px;
    color: #0f172a;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease;
}

.sotam-input-wrap .form-control.lst-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

.sotam-input-wrap .form-control.lst-input:focus {
    background-color: #ffffff !important;
    border-color: #00B02D !important;
    box-shadow: 0 0 0 3px rgba(0, 176, 45, 0.15) !important;
}

.sotam-input-wrap:focus-within .sotam-input-icon {
    color: #00B02D;
}

/* Botón mostrar/ocultar clave */
.sotam-input-wrap.sotam-has-toggle .form-control.lst-input {
    padding-right: 40px !important;
}

.sotam-pwd-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    z-index: 2;
}

.sotam-pwd-toggle:hover,
.sotam-pwd-toggle:focus {
    color: #00B02D;
    background-color: #edf9f1;
    outline: none;
}

/* ---------- Enlaces de recuperación en Login ---------- */
.sotam-auth-recovery {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -2px;
    margin-bottom: 18px;
    font-size: 12.5px;
}

.sotam-auth-recovery a {
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sotam-auth-recovery a:hover,
.sotam-auth-recovery a:focus {
    color: #00B02D;
    text-decoration: underline;
}

/* ---------- Botón principal institucional ---------- */
.sotam-auth-btn {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #ffffff !important;
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.sotam-auth-btn:hover,
.sotam-auth-btn:focus {
    background-color: #00B02D;
    border-color: #00B02D;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(0, 176, 45, 0.28);
    transform: translateY(-1px);
    outline: none;
}

.sotam-auth-btn i {
    font-size: 17px;
}

/* ---------- Banner informativo contextual ---------- */
.sotam-auth-banner {
    background: #f5fbf7;
    border: 1px solid #b3e6c0;
    border-left: 4px solid #00B02D;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.45;
    text-align: left;
}

.sotam-auth-banner i {
    color: #00B02D;
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ---------- Tarjeta de resultado en Verificar Solvencia ---------- */
.sotam-verify-result {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left;
}

.sotam-verify-result i {
    font-size: 19px;
    margin-top: 1px;
    flex-shrink: 0;
}

.sotam-verify-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.sotam-verify-success i {
    color: #059669;
}

.sotam-verify-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.sotam-verify-danger i {
    color: #dc2626;
}

/* ---------- Pie de tarjeta y acciones secundarias ---------- */
.sotam-auth-footer {
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sotam-auth-register-text {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.sotam-auth-link-strong {
    color: #00B02D;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.sotam-auth-link-strong:hover,
.sotam-auth-link-strong:focus {
    color: #00594C;
    text-decoration: underline;
}

.sotam-auth-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b !important;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.sotam-auth-secondary-btn i {
    color: #00B02D;
    font-size: 16px;
    transition: color 0.15s ease;
}

.sotam-auth-secondary-btn:hover,
.sotam-auth-secondary-btn:focus {
    background-color: #edf9f1;
    border-color: #00B02D;
    color: #000000 !important;
}

.sotam-auth-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sotam-auth-back-link i {
    font-size: 16px;
    color: #00B02D;
}

.sotam-auth-back-link:hover,
.sotam-auth-back-link:focus {
    color: #00B02D;
    background-color: #edf9f1;
}

/* ---------- Responsividad Tablet y Móvil ---------- */
@media (max-width: 991px) {
    .sotam-auth-layout {
        flex-direction: column;
    }
    .sotam-auth-aside {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 24px 24px 22px;
        align-items: center;
        text-align: center;
    }
    .sotam-aside-brand {
        justify-content: center;
    }
    .sotam-aside-brand img.municipio {
        width: 190px;
    }
    .sotam-aside-hero {
        padding: 14px 0 8px;
        max-width: 480px;
    }
    .sotam-aside-heading {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .sotam-aside-white,
    .sotam-aside-black {
        display: inline;
    }
    .sotam-aside-text {
        font-size: 13.5px;
    }
    .sotam-aside-copy {
        display: none;
    }
    .sotam-auth-main {
        padding: 28px 16px 40px;
    }
}

@media (max-width: 480px) {
    .sotam-auth-card .panel-body {
        padding: 26px 20px 22px;
    }
    .sotam-auth-brand img {
        width: 145px;
    }
    .sotam-auth-title {
        font-size: 18px;
    }
    .sotam-aside-heading {
        font-size: 24px;
    }
}
