/**
 * Estilos del módulo de Login
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('/img/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.logo-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Quentinpro', Georgia, 'Times New Roman', serif;
    font-size: 24px;
    color: #d41316;
    font-weight: normal;
    margin: 0;
    letter-spacing: 1px;
}

.login-title {
    font-size: 18px;
    color: #d41316;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #d41316;
    box-shadow: 0 0 0 3px rgba(212, 19, 22, 0.1);
}

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

.btn-login {
    background-color: #d41316;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 4px;
}

.btn-login:hover {
    background-color: #b01013;
}

.btn-login:active {
    transform: scale(0.98);
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    color: #666;
    z-index: 1;
    border-top: 2px solid #f4d3d5;
}

.login-footer p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 10px !important;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        padding: 16px;
    }
    
    .login-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .logo-img {
        width: 100px;
        height: 100px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .login-title {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .btn-login {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px;
    }
    
    .login-footer {
        font-size: 10px;
        padding: 7px 10px;
    }
    
    .login-footer p {
        font-size: 10px !important;
    }
}
