/* Estilo para el ojo de la contraseña */
.fa-eye,
.fa-eye-slash {
    font-size: 16px;
    color: rgb(246, 248, 253);
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 52px;
    transform: translateY(-50%);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.form-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f6fc;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.form-content {
    background-color: #f4f6fc;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
}

.image-container {
    width: 50%;
    position: relative;
    background-color: rgb(24, 49, 96);
}

.imagen-arriba {
    width: 150px;
    margin-bottom: 5px;
}

h3.text-left {
    text-align: left;
    margin-bottom: 50px;
    font-size: 16px;
    color: #333;
}

.error-message {
    position: relative;
    top: 10px;
    color: red;
    background-color: rgb(248, 219, 219);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.form-label {
    font-size: 16px;
    color: black;
    margin-bottom: 5px;
    display: block;
}

.form-contro {
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: rgb(2, 2, 77);
    color: white;
    width: 100%;
    margin-bottom: 15px;
    padding: 8px 15px;
    position: relative;
}

.form-contro::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-contro:hover,
.form-contro:focus {
    background-color: rgb(6, 4, 46);
    color: white;
    border-color: rgb(6, 4, 46);
    outline: none;
}

.password-container {
    position: relative;
}

.btn-custom {
    background-color: #ffff;
    border: none;
    color: black;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: bold;
    margin-top: 20px;
}

.btn-custom:hover {
    background-color: rgb(2, 2, 77);
    color: white;
}

.btn-custom:focus,
.btn-custom:active {
    background-color: rgb(6, 4, 46);
    transform: scale(0.98);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    color: white;
}

.text-segundo {
    display: block;
    width: 160px;
    text-align: left;
    margin-top: 5px;
    font-size: 14px;
    color: #6c757d;
}

.text-segundo:hover {
    color: rgb(2, 2, 77);
    text-decoration: underline;
    cursor: pointer;
}
.imagen-grande {
    width: 100%;
    height: 80%;
    object-fit: cover;
    position: absolute;
    top: 54.4%;
    left: 48%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.99);
    border-radius: 7px;
    z-index: 10;
}

.decorative-bar {
    position: absolute;
    width: 50px;
    height: 100%;
    background-color: rgb(42, 69, 118);
    left: 0;
    z-index: 1;
    opacity: 0.5;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.99);
}

.decorative-bar-2 {
    position: absolute;
    width: 100%;
    height: 50px;
    background-color: rgb(42, 69, 118);
    left: 0px;
    z-index: 2;
    opacity: 0.5;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.99);
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }

    .form-container,
    .image-container {
        width: 100%;
    }

    .image-container {
        display: none;
    }

    .form-content {
        max-width: 100%;
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .imagen-arriba {
        width: 120px;
    }

    .form-content {
        padding: 20px;
    }
}

/* Estilos para Modal OTP */
.modal-header {
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
    font-size: 18px;
}

.btn-close-white {
    background-color: rgba(255, 255, 255, 0.5);
}

.btn-close-white:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

#modalOTP .fa-lock-open {
    color: #02024D;
}

#modalOTP .modal-body {
    padding: 30px 25px;
}

#modalOTP .text-center h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

#modalOTP .text-muted {
    color: #666 !important;
    font-size: 14px;
}

#estadoOTP {
    margin-bottom: 15px;
}

#estadoOTP .alert {
    border-radius: 8px;
    border: none;
    font-size: 14px;
    padding: 12px 15px;
}

#btnEnviarOTP {
    background-color: #02024D;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

#btnEnviarOTP:hover {
    background-color: #000a1f;
    color: white;
    box-shadow: 0 0 10px rgba(2, 2, 77, 0.3);
}

#btnEnviarOTP:disabled {
    background-color: #ccc;
    color: #999;
}

#codigoOTP {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #02024D;
}

#codigoOTP:focus {
    border-color: #02024D;
    box-shadow: 0 0 10px rgba(2, 2, 77, 0.2);
    outline: none;
}

#btnVerificarOTP {
    background-color: #28a745;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

#btnVerificarOTP:hover {
    background-color: #218838;
    color: white;
}

#btnVerificarOTP:disabled {
    background-color: #ccc;
    color: #999;
}

#tiempoRestante {
    color: #d32f2f;
    font-weight: bold;
}

#resultadoOTP {
    margin-top: 15px;
}

#resultadoOTP .alert {
    border-radius: 8px;
    border: none;
    font-size: 14px;
    padding: 12px 15px;
}

#divReenviar button {
    background-color: #02024D !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none !important;
}

#divReenviar button:hover {
    background-color: #000a1f !important;
    box-shadow: 0 0 10px rgba(2, 2, 77, 0.3);
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 15px;
}

#btnEnviarOTP:hover {
    background-color:rgb(255, 255, 255);
    color:black;
    box-shadow:0 0 10px rgba(2, 2, 77, 0.3);
    transform: scale(1.02);
    transition: all 0.2s;
}

/* Clase para botón deshabilitado en login */
.btn-loading {
    pointer-events: none !important;
    opacity: 0.6;
}

.btn-loading:hover {
    background-color: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}
