*{
    box-sizing:border-box;
    padding: 0px;
    margin:0px;
}

/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*html {
  position: relative;
  min-height: 100%;
}*/

body {
    max-width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

.raleway-main {
    /*font-family: "Raleway", sans-serif;*/
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}


.login-gradient {
    position: relative;
}

.login-gradient::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    min-height: -webkit-fill-available;
    background: transparent linear-gradient(253deg, #1B3F8C 0%, #142c61 100%) 0% 0% no-repeat padding-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    margin: 0;
    padding: 0;
}


.whistle {
    animation: wiggle 4s infinite;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.login-error ul{
    list-style:none;
    text-align:center;
    color:red;
    font-weight:bold;
    padding:0px;
}

.access-h1 {
    margin-top: -100px;
    margin-bottom: 20px;
    color: #facf5a;
    text-align: center;
    font-family: 'Raleway';
    font-size: 90px;
    font-weight: 800;
}

.access-h2 {
    color: #455d7a;
    text-align: center;
    font-family: 'Raleway';
    font-size: 30px;
    text-transform: uppercase;
}

.whistle2 {
    width: 20%;
    fill: #f95959;
    margin: 100px 40%;
    text-align: left;
    transform: translate(-50%, -50%);
    transform: rotate(0);
    transform-origin: 80% 30%;
    animation: wiggle2 .2s infinite;
}

.lock {
    fill: #43cea2;
}

@keyframes wiggle2 {
    0% {
        transform: rotate(3deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(3deg);
    }
}


/* Add a green text color and a checkmark when the requirements are right */
.valid {
    color: green;
}


/* Add a red text color and an "x" icon when the requirements are wrong */
.invalid {
    color: red;
}

.modal-header-bg {
    background: transparent linear-gradient(256deg, #2463AF 0%, #0B3456 100%) 0% 0% no-repeat padding-box;
    border-radius: 44px 0px 44px 0px;
    opacity: 1;
    height: 100px;
    text-align: center;
    font: normal normal normal 25px/30px Montserrat;
    letter-spacing: 0px;
    color: #FFFFFF;
    opacity: 1;
}

.modal-radius {
    border-top-left-radius: 44px !important;
    border-bottom-right-radius: 44px !important;
}

.recover-pass-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.card-recover-pass {
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 30px;
    opacity: 1;
    max-width: 480px;
    padding: 1.5rem;
    transition: height 0.3s ease;
    height: auto; /* Para que se ajuste al contenido autom�ticamente */
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    box-sizing: border-box;
}

.recover-pass-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.recover-pass-footer img {
    max-width: 150px;
    height: auto;
}

.modal-dialog-recover {
    width: min(450px, calc(100vw - 2rem));
    max-width: 100%;
}

@media (min-width: 576px) {
    .recover-pass-wrapper { padding: 1.25rem; }
    .card-recover-pass {
        padding: 2rem;
        max-height: calc(100vh - 2.5rem);
        max-height: calc(100dvh - 2.5rem);
    }
}

@media (min-width: 768px) {
    .recover-pass-wrapper { padding: 1.5rem; }
    .card-recover-pass {
        padding: 40px;
        max-height: calc(100vh - 3rem);
        max-height: calc(100dvh - 3rem);
    }
}

@media (max-width: 575px) {
    #InputCodigoContainer {
        gap: 0.35rem;
    }
    #InputCodigoContainer .input-codigo-recover-pass {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        font-size: 1.5rem;
        height: 56px;
    }
    #InputCodigoContainer .invalid-input-codigo-recover-pass {
        font-size: 1.5rem;
        height: 56px;
    }
    .password-criteria-recover {
        flex-wrap: wrap;
        justify-content: center;
    }
    #Paso2Container img.d-block {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

.input-codigo-recover-pass {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    border: 1px solid #E3E3E3;
    opacity: 1;
    padding: 10px;
    background-color: #F5F5F5;
    font-size: 2rem;
    font-weight: 500;
    color:black;
}

.invalid-input-codigo-recover-pass {
    width: 100%;
    height: 70px;
    border-radius: 10px;
    border: 1px solid red;
    opacity: 1;
    padding: 10px;
    background-color: #F5F5F5;
    font-size: 2rem;
    font-weight: 500;
}

.invalid-user-recover-pass {
    border: 1px solid red !important;
}

/* Campos contraseña RecoverPass: label arriba, input+botón como una sola unidad */
.password-field-recover {
    display: block;
}
.password-label-recover {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.35rem;
}
.input-group-password-recover {
    display: flex;
    align-items: stretch;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group-password-recover:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.input-group-password-recover .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0.65rem 1rem;
    font-size: 1.05rem;
    border: none !important;
    border-radius: 0;
    background: transparent;
}
.input-group-password-recover .form-control::placeholder {
    color: #6c757d;
}
.input-group-password-recover .form-control:focus {
    box-shadow: none;
    outline: none;
}
.input-group-password-recover .form-control.invalid-user-recover-pass {
    border: none !important;
}
.btn-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 52px;
    padding: 0;
    font-size: 1.2rem;
    border: none !important;
    border-left: 1px solid #dee2e6 !important;
    border-radius: 0;
    background: #f8f9fa;
    color: #6c757d;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-password-toggle:hover {
    background: #e9ecef;
    color: #495057;
}
/* Criterios de contraseña: sin truncar, con wrap */
.password-criteria-recover {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem 0.5rem;
    font-size: 0.60rem;
    margin-bottom: 1rem;
}
.password-criteria-recover span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.password-criteria-recover .invalid {
    color: #dc3545;
}
.password-criteria-recover .valid {
    color: #198754;
}
/* Estado error en input contraseña */
.input-group-password-recover:has(.invalid-user-recover-pass) {
    border-color: #dc3545;
}
.input-group-password-recover:has(.invalid-user-recover-pass):focus-within {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.disabled-link {
    pointer-events: none;
    color: gray;
    text-decoration: none;
}

.btn-primary {
    background-color: #1B3F8C !important;
    border-color: #1B3F8C !important;
}

.btn-primary:hover {
    background-color: #1B3F8C !important;
    border-color: #1B3F8C !important;
}