/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-image: url('../../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 60px;
}

/* Página de login: altura completa */
body.login-page {
    min-height: 100vh;
}

/* Contenedor principal */
.login-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caja de login */
.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

/* Logo */
.logo-container {
    margin-bottom: 15px;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

/* Título */
.login-title {
    font-family: 'Quentinpro', 'Roboto', Arial, sans-serif;
    font-size: 28px;
    color: #d41316;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Formulario */
.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Roboto', Arial, sans-serif;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Roboto', Arial, sans-serif;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #d41316;
}

.form-group input:hover {
    border-color: #d41316;
}

.form-group input::placeholder {
    color: #999;
}

/* Botón de login */
.login-btn {
    width: 100%;
    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-btn:hover {
    background: #b01013;
}

.login-btn:active {
    background: #9e0e11;
}

/* Mensaje de error */
.error-message {
    background: #ffebee;
    color: #d41316;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

/* Estados de validación */
.form-group input.error {
    border-color: #d41316;
}

/* Loading state */
.login-btn.loading {
    position: relative;
    color: transparent;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive */
/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ff7e7e;
    z-index: 1000;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.footer-text {
    margin: 0;
    color: #666;
    font-size: 10px;
    font-weight: 500;
}

.heart {
    color: #d41316;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .login-title {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .footer-text {
        font-size: 9px;
    }
}