/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Contenedor del login */
.login-container {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* Título */
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 15px;
}

/* Etiquetas */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Campos de entrada */
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Botón de submit */
.form-group button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.form-group button:hover {
    background-color: #218838;
}

/* Mensajes de error */
.error-message {
    color: #dc3545;
    margin-bottom: 15px;
    text-align: center;
}

/* Mensaje de bloqueo */
.block-message {
    color: #dc3545;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .login-container {
        padding: 15px 20px;
        margin: 0 15px;
    }
    
    .login-container h2 {
        font-size: 1.5rem;
    }
}
/* Mensaje de éxito */
.success-message {
    color: #28a745;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Texto pequeño */
.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Enlace de redirección */
.text-center {
    text-align: center;
    margin-top: 15px;
}

.text-center a {
    color: #007bff;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Estilos para mensajes de validación */
input:invalid {
    border-color: #dc3545;
}

input:valid {
    border-color: #28a745;
}