/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor principal */
.login-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Formulario de login */
.login-form {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

/* Título de la aplicación */
.app-title {
    color: #d41316;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: 1px;
    font-family: 'Quentinpro', 'Georgia', 'Times New Roman', serif;
}

/* Contenido del formulario */
.login-form-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grupos de formulario */
.form-group {
    text-align: left;
}

.form-label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Campos de entrada */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 13px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #d41316;
    box-shadow: 0 0 0 2px rgba(212, 19, 22, 0.2);
}

.form-input::placeholder {
    color: #999;
}

/* Botón de login */
.login-button {
    background-color: #d41316;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    background-color: #b01013;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 19, 22, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
    .login-form {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .app-title {
        font-size: 20px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    animation: fadeIn 0.6s ease-out;
}

/* Estados de error */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

/* Estados de éxito */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #c3e6cb;
}
