/* ===============================
   CONTENEDOR GENERAL
================================ */
.login-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center; /* 🔵 sube el login */
    padding: 20px;
    padding-top: 40px;       /* controla qué tan arriba queda */
    background-color: #f4f6fb;
}


/* ===============================
   CARD AZUL
================================ */
.login-card {
    background-color: #162f4d;
    border-radius: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 760px;
    width: 100%;
    padding: 35px;

}

/* ===============================
   IMAGEN
================================ */
.login-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-imagen img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,0.15);
}

/* ===============================
   FORMULARIO
================================ */
.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    padding-right: 10px;
}

.login-form h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* INPUTS */
.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: #f5f5f5;
}

/* BOTÓN */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #5ee27a;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #4fd46b;
}

/* LINK */
.recuperar {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #cfd8e3;
    text-decoration: none;
}

.recuperar:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .login-card {
        grid-template-columns: 1fr;
        padding: 30px 22px;
        gap: 20px;
    }

    .login-imagen img {
        width: 160px;
        height: 160px;
    }

    .login-form {
        display: flex; /* 👈 asegura que se vea */
    }
}

.login-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* BOTÓN VOLVER */
.btn-volver {
    color: #ffffff;              /* blanco por defecto */
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* ICONO */
.btn-volver i {
    font-size: 18px;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* HOVER: texto + flecha en azul */
.btn-volver:hover {
    color: #1c64bc;              /* azul institucional */
    opacity: 1;
}

/* HOVER ICONO */
.btn-volver:hover i {
    color: #1c64bc;
    transform: translateX(-4px);
}

/* INPUT CON ICONO */
.input-icon {
    position: relative;
    background-color: #f5f5f5;
    border-radius: 30px;
    overflow: hidden; /* 🔑 CLAVE */
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: transparent; /* 🔑 */
    border-radius: 30px;
}

@media (max-width: 768px) {

    .login-card {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 20px;

        max-width: 380px;   /* 🔑 límite visual */
        width: 100%;
        margin: 0 auto;     /* 🔑 centrado */
    }

    .login-imagen img {
        width: 140px;
        height: 140px;
    }

    .login-form {
        display: flex;
    }
}


/* ===============================
   MODAL RECUPERAR CONTRASEÑA
================================ */

/* Contenedor del modal */
.modal-recuperar {
    background-color: #f4f6fb;          /* gris azulado suave */
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Header */
.modal-recuperar .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

/* Título */
.modal-recuperar .modal-title {
    color: #001b3d;                     /* azul institucional */
    font-weight: 700;
    font-size: 18px;
}

/* Body */
.modal-recuperar .modal-body {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 10px;
}

/* Footer */
.modal-recuperar .modal-footer {
    border-top: none;
    justify-content: center;
}

/* Botón */
.btn-entendido {
    background-color: #001b3d;
    color: #ffffff;
    border-radius: 30px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

.btn-entendido:hover {
    background-color: #1c64bc;
}


/* ===============================
   HEADER LOGIN
================================ */
.login-header {
    background-color: #001b3d;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.login-header-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.login-logo img {
    height: 70px;        /* aumenta el tamaño */
    width: auto;
    max-height: 80px;
}
@media (max-width: 768px) {
    .login-logo img {
        height: 55px;
    }
}
/* BOTÓN VOLVER */
.btn-volver {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* CÍRCULO DE LA FLECHA */
.icon-volver {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.icon-volver i {
    font-size: 18px;
    color: #ffffff;
}

/* HOVER */
.btn-volver:hover .icon-volver {
    background-color: #b4cff0;
    transform: translateX(-4px);
}

/* ===============================
   AJUSTE HEADER LOGIN - DESKTOP
================================ */
@media (min-width: 992px) {

    .login-header {
        padding-left: 40px;   /* empuja logo a la izquierda */
        padding-right: 40px;  /* empuja flecha a la derecha */
    }

    .login-header-container {
        max-width: 100%;      /* 🔑 CLAVE */
    }
}
