/* ==========================================
   SAAC 1.0 - INICIO DE SESIÓN
   Laravel 11 + AdminLTE 3.2
========================================== */

/* ==========================================
   1. FONDO INSTITUCIONAL (CÍRCULOS GEOMÉTRICOS SUAVES)
========================================== */

html,
body,
body.login-page {
    min-height: 100vh;
    background-color: #f4f6f8 !important; /* Gris muy claro neutro de base */
    background-image: 
        /* Círculo turquesa superior derecho */
        radial-gradient(
            circle at 100% 0%, 
            rgba(20, 174, 184, 0.12) 0%, 
            rgba(20, 174, 184, 0.05) 30%, 
            transparent 60%
        ),
        /* Círculo verde inferior izquierdo */
        radial-gradient(
            circle at 0% 100%, 
            rgba(7, 140, 70, 0.12) 0%, 
            rgba(7, 140, 70, 0.05) 35%, 
            transparent 65%
        ),
        /* Gradiente suave central de apoyo */
        radial-gradient(
            circle at 50% 50%, 
            #ffffff 0%, 
            #f4f6f8 100%
        ) !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Evitar desbordamientos */
* {
    box-sizing: border-box;
}


/* ==========================================
   2. CONTENEDOR PRINCIPAL Y TARJETA
========================================== */

.login-box {
    width: 440px !important;
    max-width: calc(100% - 30px) !important;
    margin: 40px auto;
}

.login-box .card,
.card {
    width: 100% !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
}

/* ==========================================
   3. ENCABEZADO Y MARCA
========================================== */

.login-box .card-header {
    width: 100% !important;
    padding: 35px 35px 10px !important;
    background: #ffffff !important;
    border: none !important;
    text-align: center !important;
}

.login-box .login-brand {
    width: 100%;
    margin: 0 auto;
}

/* Logo COOPSERPROG */
.login-box .logo-cooperativa {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    max-height: 95px !important;
    object-fit: contain !important;
    margin: 0 auto 20px !important;
}

/* Divisor con SAAC 1.0 al centro */
.login-box .sistema-nombre-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0 25px;
}

.login-box .divider-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.login-box .sistema-nombre {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    color: #64748b !important;
    font-size: 15px;
    font-weight: 500;
}

.login-box .sub-logo {
    height: 18px !important;
    width: auto !important;
    object-fit: contain;
}

/* Título de bienvenida */
.login-box .login-brand h4 {
    color: #1e293b !important;
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.login-box .login-brand p {
    color: #64748b !important;
    font-size: 14px;
    margin: 0;
}

/* ==========================================
   4. FORMULARIO Y CAMPOS DE TEXTO
========================================== */

.login-box .card-body,
.login-box .login-card-body {
    padding: 15px 35px 25px !important;
    background: #ffffff !important;
    border: none !important;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    color: #1e293b !important;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Input group */
.login-box .input-group {
    border-radius: 8px;
    overflow: hidden;
}

/* Iconos a la izquierda */
.login-box .input-group-prepend .input-group-text {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    color: #64748b !important;
    padding: 0 14px;
}

/* Inputs de texto */
.login-box .form-control {
    height: 46px;
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 14px;
    padding: 10px 14px;
}

.login-box .form-control::placeholder {
    color: #94a3b8 !important;
}

.login-box .form-control:focus {
    border-color: #078c46 !important;
    box-shadow: none !important;
}

/* ==========================================
   5. OPCIONES Y BOTÓN
========================================== */

.login-box .login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0;
}

.login-box .icheck-primary label {
    color: #475569 !important;
    font-size: 13.5px;
    font-weight: 500;
}

.login-box .login-options a {
    color: #078c46 !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.login-box .login-options a:hover {
    text-decoration: underline;
}

/* Ocultar encabezado superior por defecto de AdminLTE */
.login-logo,
.register-logo {
    display: none !important;
}

/* Botón principal */
.login-box .btn-login,
.login-box button[type="submit"] {
    height: 48px;
    background-color: #078c46 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.login-box .btn-login:hover,
.login-box button[type="submit"]:hover {
    background-color: #056e37 !important;
}

/* ==========================================
   6. PIE DE PÁGINA
========================================== */

.login-box .card-footer {
    background: #ffffff !important;
    border: none !important;
    padding: 0 35px 30px !important;
    text-align: center;
}

.login-box .login-footer p {
    margin: 0;
    color: #94a3b8 !important;
    font-size: 12px;
    line-height: 1.6;
}