/* =========================================================
   SECCIÓN RECUPERAR CONTRASEÑA
========================================================= */

.forgot-password-section {
    width: 100%;
    min-height: calc(100vh - 72px - 304px);
    background: url('../../img/login/confintia-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.forgot-password-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Tarjeta */
.forgot-password-card {
    background: #FBFBFB;
    border-radius: 24px;
    border: 0.5px solid #D0D0D0;
    padding: 24px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header */
.forgot-password__header {
    text-align: center;
    margin-bottom: 32px;
}

.forgot-password__title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #535353;
    margin: 0 0 8px 0;
}

.forgot-password__subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #535353;
    margin: 0;
}

/* Formulario */
.forgot-password-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grupo de formulario */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #535353;
}

.form-input-wrapper {
    width: 100%;
    background: #FBFBFB;
    border: 0.5px solid #D0D0D0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-input-wrapper:focus-within {
    border-color: #FF8A2A;
    box-shadow: 0 0 0 2px rgba(255, 138, 42, 0.1);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #1B1B1B;
    background: transparent;
}

.form-input::placeholder {
    color: #C0C0C0;
}

/* Botón Enviar */
.forgot-password__button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.forgot-password__button {
    max-width: 200px;
    background: #FF8A2A;
    border-radius: 4px;
    padding: 10px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.forgot-password__button:hover {
    background: #e07a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 42, 0.3);
}

.forgot-password__button:active {
    transform: translateY(0);
}

.forgot-password__button span {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

/* Enlace a login */
.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.login-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #41494E;
}

.login-link__btn {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #535353;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.login-link__btn:hover {
    opacity: 0.8;
}

/* Mensajes de error */
.form-error {
    color: #dc3545;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 4px;
    padding-left: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.input-error {
    border-color: #dc3545 !important;
}

/* Contenedor de errores generales */
.form-errors-container {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-align: center;
}

/* =========================================================
   MODAL DE CONFIRMACIÓN
========================================================= */

.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    z-index: 1001;
    max-width: 450px;
    width: 90%;
    margin: 20px;
}

.modal-content {
    background: #FBFBFB;
    border-radius: 10px;
    border: 1px solid #FF8A2A;
    padding: 16px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px 16px;
}

.modal-message {
    color: #121E52;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    max-width: 380px;
}

.modal-button {
    background: #ef6f07;
    border-radius: 4px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #FBFBFB;
}

.modal-button:hover {
    background: #e07a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 111, 7, 0.3);
}

.modal-button:active {
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet */
@media (max-width: 768px) {
    .forgot-password-section {
        padding: 40px 20px;
        min-height: calc(100vh - 72px);
    }
    
    .forgot-password-card {
        padding: 24px 30px;
    }
    
    .forgot-password__title {
        font-size: 28px;
    }
    
    .forgot-password__subtitle {
        font-size: 14px;
    }
    
    .forgot-password__button {
        max-width: 180px;
        padding: 8px 20px;
    }
    
    .forgot-password__button span {
        font-size: 16px;
    }
    
    .modal-message {
        font-size: 18px;
        line-height: 26px;
    }
    
    .modal-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .forgot-password-section {
        padding: 30px 16px;
    }
    
    .forgot-password-card {
        padding: 20px 20px;
    }
    
    .forgot-password__title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .forgot-password__subtitle {
        font-size: 13px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .forgot-password__button {
        max-width: 160px;
        padding: 8px 16px;
    }
    
    .forgot-password__button span {
        font-size: 14px;
    }
    
    .login-text,
    .login-link__btn {
        font-size: 13px;
    }
    
    .modal-message {
        font-size: 16px;
        line-height: 24px;
    }
    
    .modal-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}