/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img/fresas-background.jpg');
    background-size: contain;
    background-position: center;
}
/*
.producto {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../img/fresas-background.jpg');
    background-size: contain;
    background-position: center;
}
*/
/* Contenedor principal del login */
.login-container {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.alert.error {
    background-color: #FFEBEE;
    color: #D32F2F;
    border-left: 4px solid #D32F2F;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: #FF6B6B;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    outline: none;
}

/* Botón */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #FF6B6B, #FF8E53);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 107, 107, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(to right, #FF5757, #FF7B3D);
    box-shadow: 0 6px 10px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Efectos adicionales */
.login-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    z-index: -1;
    border-radius: 25px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.login-container:hover::before {
    opacity: 0.5;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Versión móvil */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .logo img {
        max-width: 100px;
    }
    
    .btn {
        padding: 12px;
    }
}

/* Efecto de carga */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*estilos de productos*/