
/*Formulario*/
form {
    display: flex;
    flex-direction: column;
    width: 70%; /* 3/5 del ancho */
    margin: 40px auto 60px;
    background: linear-gradient(135deg, #fce6db, #f9c5a8);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    padding: 40px 50px 50px;
    transition: box-shadow 0.3s ease;
}

form:hover {
    box-shadow: 0 28px 60px rgba(0,0,0,0.35);
}


form > img {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 160px;
    max-height: 160px;
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(90, 42, 131, 0.4);
    transition: transform 0.3s ease;
}

form > img:hover {
    transform: scale(1.05);
}


label {
    font-weight: 600;
    color: #5a2a83;
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #c6b6e2;
    outline: none;
    background-color: #faf9ff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
select {
    color: #9c8dbf;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #7f00ff;
    box-shadow: 0 0 8px 2px rgba(127, 0, 255, 0.35);
    background-color: #fff;
}


form h2 {
    padding-top: 5px;
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-self: center;
    align-items: center;
    width: 75%;
}

.container label,
input {
    margin: 2px;
    padding: 5px;
}

.container input {
    padding: 10px 8px;
}

#email,
#password {
    width: 60%;
}

#email:focus,
#password:focus {
    border-color: red;
}

a {
    cursor: pointer;
    margin-top: 5px;
    padding: 10px;
    color: black;
}

.container-img {
    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    height: 150px;
    /* O ajusta la altura según tus necesidades */
}

img {
    max-width: 150px;
    /* Asegura que la imagen no supere el ancho del contenedor */
    max-height: 150px;
    /* Asegura que la imagen no supere la altura del contenedor */
}

.botones {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    /* Ajusta este valor según sea necesario */
}

.boton button {
    width: 150px;
    height: 50px;
}



.remember {
    align-items: center;
    margin-top: 10px;
}

.remember a {
    font-size: 12px;
    margin-left: 20px;

}

.remember a:hover {
    text-decoration: underline;

}

.div_password {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    flex-direction: column;
}

.mostrar_password {
    position: absolute;
    top: 60%;
    left: 75%;
}

.ocultar_password {
    position: absolute;
    top: 60%;
    left: 75%;
    display: none;
}


.remember {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* espacio entre elementos */
    margin-top: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e74c3c; /* color del checkbox (rojo suave) */
    border-radius: 4px;
    transition: accent-color 0.3s ease;
}

.remember label {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    user-select: none;
}

.remember label:hover {
    color: #e74c3c;
}

.remember a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.remember a:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    text-decoration: none;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .remember {
        flex-direction: column;
        gap: 10px;
    }
    
    .remember a {
        font-size: 14px;
    }
}


@media only screen and (max-width: 768px) {
    #email,
    #password {
        width: 90%;
    }
    
    .mostrar_password {
        left: 85%;
    }

}

@media only screen and (max-width: 600px) {
    form {
        display: flex;
        width: 100%;
        margin: 5% auto;
    }

    .container {
        width: 100%;
    }
}