/* Estilos generales del formulario */
form {
    display: flex;
    flex-direction: column;
}

/* Estilos mejorados para inputs y selects */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

/* Botones mejorados */
button, input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

/* Enlaces */
a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Párrafos dentro del formulario */
form p {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: left;
}

/* Mejoras en listas (<ul> y <li>) dentro de formularios */
ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    text-align: left;
}

ul li {
    padding: 8px;
    font-size: 0.8rem;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

ul li:last-child {
    border-bottom: none;
}

/* Ajuste para los errores de formulario en Django */
ul.errorlist {
    background: #ffebee;
    border: 1px solid #e57373;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
}

ul.errorlist li {
    font-weight: 600;
    padding: 5px;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.auth-image {
    width: 650px;  /* Ancho fijo en pantallas grandes */
    max-width: 100%; /* Evita que desborde en móviles */
    height: auto;
    display: block;
    margin: auto;
}

@media (max-width: 768px) { 
    .auth-image {
        width: 100%; /* Hace que la imagen se adapte mejor en móviles */
    }
}