/* General Settings */
html, body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background-color: rgb(240 95 137 / 42%);
    font-family: 'Open Sans', sans-serif;
}

/* Main */
body {
    background-color:  rgb(240 95 137 / 42%);
}

h2 {
    color: #6a6a6a;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: auto;
}

form {
    display: grid;
    gap: 1rem;
}

input {
    appearance: none;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    background-color: rgba(229, 229, 229, 0.5);
    padding: 0.5rem 1rem;
    color: #4a4a4a;
}

input::placeholder {
    color: #a7a7a7;
}

a {
    color: #4a4a4a;
    text-decoration: none;
}

button {
    appearance: none;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    background-color: rgb(240, 95, 137);
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    background-color: #b5b5b5;
}

/* Style for the link-button */
.link-button {
    appearance: none;
    outline: none;
    border: none;
    border-radius: 0.5rem;
    background-color: rgb(240, 95, 137);
    color: #fff;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 30px;
}


/* Forms */
form {
    flex-direction: column;
    align-items: center;
}

#loginForm, #forgotPasswordForm {
    gap: 1.5rem;
}

/* Form - Forgot Password */
#forgotPasswordForm {
    margin-top: 2rem;
}




/* Reset Password Modal */
#resetPasswordModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-out;
}

#resetPasswordModal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.close:focus-visible {
    outline: 1px solid rgba(0, 0, 0, 0.5);
}

/* Estilo de los campos de entrada en el modal */
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Botón para restablecer la contraseña */
#resetPasswordBtn {
    width: 100%;
    padding: 12px;
    background-color: #f05f89;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#resetPasswordBtn:hover {
    background-color: #e04d77;
}

/* Animación de entrada del modal */
@keyframes fadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Color palette: rgb(240, 95, 137), #f05f89 */

#forgotButton {
    background-color: transparent;
    color: #ff6699;
    border: none;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
}

#forgotButton:hover {
    color: #e05584; /* Rosa más oscuro */
}
