/*==================================================
    CONTROLA
    Pantalla de Inicio de Sesión
==================================================*/
html {
    height: 100%;
}

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

body.login-page {
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fondo con más profundidad */
    background: linear-gradient(135deg, #e8f4fd 0%, #dbeeff 50%, #e8f0ff 100%);
}

/*=========================================
    TARJETA LOGIN
=========================================*/
.login-box {
    position: relative;
    width: 460px;
    max-width: 92%;
    padding: 35px 42px;
    background: #fff;
    border-radius: 22px;
    /* Sombra azulada más pronunciada */
    box-shadow:
        0 20px 50px rgba(20, 45, 90, .14),
        0 4px 12px rgba(24, 95, 165, .08);
    overflow: hidden;
}

.login-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1459D9, #00AFC1);
}

/*=========================================
    LOGO
=========================================*/
.logo-area {
    text-align: center;
    margin-bottom: 16px;
}

.logo-area img {
    width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Sombra sutil bajo el logo */
    filter: drop-shadow(0 4px 10px rgba(24, 95, 165, .18));
}

@media (max-width: 480px) {
    .login-box {
        width: 94%;
        padding: 24px 18px;
        border-radius: 18px;
    }

    .logo-area {
        margin-bottom: 14px;
    }

    .logo-area img {
        width: 160px; /* más pequeño para que respire */
    }

    .module-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .login-description {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .form-control {
        height: 48px;
        font-size: 15px;
    }

    .btn-primary {
        height: 50px;
        font-size: 16px;
    }
}

/*=========================================
    TITULO
=========================================*/
.module-title {
    text-align: center;
    font-size: 21px;
    font-weight: 700;
    color: #183B69;
    margin-top: 0;
    margin-bottom: 6px;
}

.login-description {
    text-align: center;
    color: #6B7280;
    font-size: 15px;
    margin-bottom: 26px;
}

/*=========================================
    INPUTS
=========================================*/
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    height: 52px;
    border: 1.5px solid #d7e1ee;
    border-radius: 12px;
    padding: 0 52px 0 18px;
    font-size: 16px;
    color: #2d3748;
    background: #f8fafd; /* Fondo levemente azulado — diferencia del blanco de la tarjeta */
    transition: all .25s ease;
}

.form-control::placeholder {
    color: #9aa7b7;
}

.form-control:focus {
    outline: none;
    border-color: #185FA5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(24, 95, 165, .10);
}

/*=========================================
    ICONOS
=========================================*/
.field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #98A5B8;
    pointer-events: none; /* no es clickeable */
}

.password-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #98A5B8;
    cursor: pointer;
    transition: .25s;
}

.password-icon:hover {
    color: #185FA5;
}

.form-control {
    width: 100%;
    height: 52px;
    border: 1.5px solid #d7e1ee;
    border-radius: 12px;
    padding: 0 48px 0 46px; /* derecha para el ojo, izquierda para el icono */
    font-size: 16px;
    color: #2d3748;
    background: #f8fafd;
    transition: all .25s ease;
}

/*=========================================
    BOTÓN
=========================================*/
.btn-primary {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0D3B72, #185FA5);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.btn-primary:disabled {
    opacity: .95;
    cursor: not-allowed;
}

.btn-primary i {
    margin-right: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 59, 114, .30);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/*=========================================
    MENSAJES
=========================================*/
#error-message {
    display: none;
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #dc3545;
    color: #fff;
    text-align: center;
}

.callout {
    margin-top: 18px;
}

/*=========================================
    FOOTER
=========================================*/
.footer-text {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7; /* Separador sutil */
    text-align: center;
    font-size: 13px;
    color: #7A869A;
    line-height: 22px;
}

.footer-text strong {
    color: #0D3B72;
    font-weight: 600;
}

/*=========================================
    EFECTO FADE
=========================================*/
#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0D3B72;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

#fade-overlay.active {
    opacity: .85;
}

/*=========================================
    LOGO BYLINE
=========================================*/
.logo-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #4a6a9a;
    letter-spacing: 1.0px;
    text-transform: uppercase;
    margin-top: 6px;
}

.logo-byline::before,
.logo-byline::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1459D9 60%, transparent);
}

.logo-byline strong {
    color: #1459D9;
    font-weight: 800;
    font-size: 12px;
}