body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
}

/* CONTENEDOR GENERAL */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* PANEL IZQUIERDO */
.left-panel {
    flex: 2;
    background-color: rgb(19, 50, 43);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url("/public/login/fondo_rombos_verde_truos.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* TÍTULO CONSULTING */
.left-panel h1 {
    font-size: 50px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

/* SUBTÍTULO BI */
.left-panel span {
    font-size: 28px;
    font-weight: normal;
    margin-top: -5px;
}

/* PANEL DERECHO */
.right-panel {
    flex: 1;
    background-color: rgba(229, 225, 230, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    position: relative;
}

.right-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/public/login/fondo_rombo_contorno_truos.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
}

/* .right-panel > * {
    position: relative;
    z-index: 1;
} */

.right-panel .logo {
    width: auto;
    height: 7.5%;
    display: block;
    padding: 20px 0px;
}

/* CONTENEDOR DE TEXT BOXES */
.text-boxes-container {
    height: 50%;
    width: 100%;
    background: transparent;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* CONTENEDOR DE LOS INPUTS */
.input-group {
    width: 80%;          /* ANCHO REAL */
    box-sizing: border-box;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 16px;
    font-weight: bold;
}

/* CAJAS DE TEXTO */
.input-group input {
    width: 100%;        
    padding: 12px;
    margin-top: 5px;
    border-radius: 6px;
    border: 2px solid rgb(0, 132, 61);
    font-size: 16px;
    box-sizing: border-box;   
}

.password-group {
    position: relative;
    margin-bottom: 10px;
}

/* PLACEHOLDER EN GRIS */
input::placeholder {
    color: #888;
}

.herramientas-password-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0 0 0;
}

/* TEXTO "¿OLVIDASTE TU CONTRASEÑA?" */
.forgot {
    color: rgb(0, 132, 61);
    cursor: pointer;
    /* margin-top: -5px;
    margin-bottom: 8px; */
    text-decoration: underline;
    width: 60%;
    text-align: left;
    padding-left: 0;
    box-sizing: border-box;
    font-weight: bold;
}

/* Contenedor del cuadro + texto */
.toggle-container {
    display: flex;
    width: 40%;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    padding-right: 0;
    /* bottom: -20px; */
    right: 0;
}

/* Cuadrito pequeño */
.toggle-box {
    width: 14px;
    height: 14px;
    border: 2px solid rgb(0, 132, 61);
    border-radius: 3px;
    transition: 0.2s;
    flex-shrink: 0;
}

/* Activado (azul relleno) */
.toggle-box.active {
    background-color: rgb(0, 132, 61);
    border-color: rgb(0, 132, 61);
}

.toggle-text {
    font-size: 14px;
    color: #333;
}

/* BOTÓN INICIAR SESIÓN */
.btn-login {
    width: 80%;
    height: 8%;
    padding: 12px;
    /* margin-top: 10px; */
    background: rgb(19, 50, 43);
    color: white;
    border: 1px solid #aaa;  
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;
}

.btn-login:hover {
    opacity: 0.9;
}

.footer {
    margin-top: auto;   /* empuja al fondo */
    font-size: 20px;
    color: #777;
}

/* MODAL CENTRADO */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

/* VENTANA EMERGENTE */
.modal-content {
    background: white;
    padding: 50px 40px;
    width: 35%;
    height: 70%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    overflow-y: auto;   /* 🔑 scroll vertical automático */
    overflow-x: hidden;
    border: 4px solid rgb(0, 132, 61);
}

.modal-padding {
    padding: 0px 12px;
}

.modal-content-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    /* justify-content: center; */
    text-align: left;
}

.modal-content-group label {
    font-size: 16px;
    font-weight: bold;
    padding: 0px 12px;
}

.modal-content-input-group {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 6px;
    width: 100%;
    padding: 0px 12px;
    box-sizing: border-box;
    align-items: stretch;
}

.modal-content-input-group input {
    width: 100%;
    padding: 12px;
    margin-bottom: 0px;
    border: 2px solid rgb(0, 132, 61);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-content-input-group button {
    width: 30%;
    background: rgb(19, 50, 43);
    color: white;
    border: 1px solid #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
}

.modal-content-input-group button:hover {
    opacity: 0.9;
}

/* INPUTS DEL MODAL */
.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 0px;
    border: 2px solid rgb(0, 132, 61);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    flex: 1;
}

.modal-password-group {
    display: flex;
    flex-direction: column;
}

.modal-content-button {
    display: flex;
    justify-content: center;
    flex: 1;
    padding: 0 12px;
}

/* BOTÓN RECUPERAR */
.btn-recover {
    height: 100%;
    width: 100%;
    margin: 27px 0px 0px 0px;
    padding: 5px 10px;
    background: rgb(19, 50, 43);
    color: white;
    border: 1px solid #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-sizing: border-box;
}

.btn-recover:hover {
    opacity: 0.9;
}

.valid-ok {
    color: #0da80d;
    font-weight: bold;
}

.valid-bad {
    color: #888;
}
#modalCodigo .modal-content {
    width: 480px !important;
    padding: 40px 40px 50px !important;
}
#modalCodigo input {
    width: 100% !important;
    height: 44px;
    font-size: 15px;
    padding: 10px 12px;
    box-sizing: border-box;
    margin-bottom: 16px; /* espacio entre inputs */
}
#modalCodigo .password-group {
    position: relative;
}

#modalCodigo .toggle-container {
    position: relative;
    display: flex;
    justify-content: flex-end; /* LO PONE A LA DERECHA */
    align-items: center;
    margin-top: -34px; 
    margin-bottom: 20px;
}


#modalCodigo .toggle-text {
    margin-left: 6px;
    font-size: 13px;
}
#validacionModal {
    margin-top: 0px;
    margin-bottom: 0px;
}

#validacionModal span {
    display: block;
    margin: 3px 0;
}
