@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Estilos generales */
body {
    font-family: 'DM Sans';
    font-size: small;
    background-color: #e0f0f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Estilos para el formulario */
form {
    background-color: #fff;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

h2 {
    font-family: Arial, sans-serif;
    font-size: 26px;
    color: #1d293f;
    margin-bottom: 15px;
    font-weight: bold;
}

p {
    font-family: 'Courier New', Courier, sans-serif;
    font-size: 12pt;
    color: #1d293f;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #1d293f;
}

a:hover {
    text-decoration: underline;
}

/* Estilo para el enlace "Regístrate" */
.registrate {
    text-decoration: underline;
    font-style: italic;
    color: #1d293f;
}

.registrate:hover {
    color: #3a4a6b;
}

/* Estilos para los textos de los campos */
span {
    font-family: 'Verdana', sans-serif;
    font-size: 12pt;
    color: #1d293f;
    text-align: left;
    display: block;
    margin-bottom: 5px;
    padding-left: 5%;
}

/* Estilo para los inputs */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 90%;
    padding: 8px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Estilo para el botón de enviar */
input[type="submit"] {
    background-color: #f3c1c1;
    color: #1d293f;
    border: 2px solid #f3c1c1;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #e2b2b2;
    color: #fff;
}

/* Estilo para checkbox y texto "Ocultar" */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 5px;
    cursor: pointer;
}

.ocultar-texto {
    font-size: 12pt;
    color: #1d293f;
    cursor: pointer;

}

/* Estilo para enlace "Olvidaste tu Contraseña" */
.olvidaste-contraseña {
    margin-top: 10px;
    display: block;
    margin-bottom: 15px;
    color: #1d293f;
    text-decoration: underline;
}

.olvidaste-contraseña:hover {
    color: #3a4a6b;
}

/* Contenedor flex para label + checkbox */
.label-contrasena {
    display: flex;
    align-items: center;
    /* centra verticalmente */
    justify-content: space-between;
    width: 100%;
    margin: 0 auto 5px; 
}

.mostrar-contrasena {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    margin-right: 30px;
    gap: 2px;
}

/* Mantén tu estilo del input separado */
.campo-contrasena {
    width: 92%;
    margin: 0 auto 25px;
}

.campo-contrasena input {
    width: 97%;
    /* ocupa todo el ancho del contenedor */
}

.volver {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d293f;
    margin-bottom: 15px;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    transition: 0.3s;
    width: fit-content;
}

.volver i {
    margin-right: 5px;
}

.volver:hover {
    background-color: #f3c1c1;
    color: #fff;
}


.error-message {
    color: red;
    font-size: 12pt;
    margin-top: 10px;
    text-align: center;
}

alert-success {
    width: 40%;

}