/* ==========================================================================
   Estilos Pantalla de Login / Autenticación - Sistema María
   ========================================================================== */

body.login-body,
body {
    background: #f0f4f8 radial-gradient(circle at 15% 15%, rgba(13, 71, 161, 0.06) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(2, 132, 199, 0.07) 0%, transparent 45%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 1.5rem 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

/* Tarjeta principal institucional */
.login-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.12);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Banner de cabecera con gradiente institucional (Navy a azul) */
.login-header-banner {
    background: linear-gradient(135deg, #001f3f 0%, #0d47a1 100%);
    position: relative;
    padding: 1.85rem 1.5rem 1.6rem 1.5rem;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

/* Marca de agua de fondo (Estilo card-acceso-moderno) */
.login-header-banner .banner-watermark {
    position: absolute;
    right: -12px;
    bottom: -15px;
    font-size: 6.5rem;
    opacity: 0.12;
    transform: rotate(-10deg);
    pointer-events: none;
    color: #ffffff;
}

/* Contenedor del logo institucional */
.login-logo-box {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    border: 3px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 0.85rem;
}

.login-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-institution-title {
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Badge institucional */
.login-portal-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.45rem;
}

/* Labels de campos (Estilo filter-label / legajo-meta-label) */
.login-label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #495057;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

/* Inputs estilizados */
.login-input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
    background: #ffffff;
}

.login-input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.login-input-group .input-group-text {
    background: #f8fafc;
    border: 0;
    color: #001f3f;
    padding-left: 14px;
    padding-right: 12px;
    font-size: 0.95rem;
}

.login-input-group .form-control {
    border: 0;
    height: 44px;
    font-size: 0.95rem;
    color: #1e293b;
    box-shadow: none !important;
    padding-left: 6px;
}

.login-input-group .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.btn-toggle-password {
    background: transparent;
    border: 0;
    color: #64748b;
    padding: 0 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
}

.btn-toggle-password:hover {
    color: #001f3f;
}

/* Botón de ingreso con gradiente institucional */
.btn-login {
    background: linear-gradient(135deg, #001f3f 0%, #0d47a1 100%) !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    height: 46px;
    box-shadow: 0 4px 12px rgba(0, 31, 63, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    letter-spacing: 0.3px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0d47a1 0%, #0284c7 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
    color: #ffffff !important;
}

.btn-login:active {
    transform: translateY(0);
}

/* Botón de recuperación por WhatsApp */
.btn-wa-recovery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-wa-recovery:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.1);
}

/* Badge de versión del sistema (idéntico al sidebar) */
.modern-version-badge {
    background: rgba(56, 189, 248, 0.16);
    color: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

/* Ocultar alertas automáticas no deseadas */
.alert:not(.alert-show) {
    display: none !important;
}

