/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* CONTENEDOR PRINCIPAL CON ANIMACIÓN */
.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    perspective: 1000px;
}

.login-card {
    background: #ffffff; 
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CONTENEDOR DE LOS LOGOS */
.login-header {
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-wrapper {
    position: relative;
    overflow: hidden;
    padding: 5px;
    border-radius: 12px;
}

/* CONFIGURACIÓN BASE DE LAS IMÁGENES */
.logo-img {
    width: 110px; 
    height: 110px;
    object-fit: contain; 
    display: block;
    position: relative;
    z-index: 2; /* Mantiene la imagen sobre la animación de luz */
}

/* SOLUCIÓN: LOGO WEB MEDIA (Cubo y texto claro) */
.web-logo {
    /* Un doble contorno oscuro que hace que el texto blanco brille y sea 100% legible */
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.5)) drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.8));
}

/* SOLUCIÓN: LOGO DLUXE MEDIA (Fénix con fondo blanco) */
.dluxe-logo {
    /* Mantiene la magia de volver transparente el fondo blanco de este logo en específico */
    mix-blend-mode: multiply; 
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.15));
}

/* ANIMACIÓN DE HAZ DE LUZ */
.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: hazDeLuz 4s infinite; 
    z-index: 10;
}

@keyframes hazDeLuz {
    0% { left: -150%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* TEXTOS DEL HEADER */
.login-header h2 {
    font-size: 1.8rem;
    color: #1e293b;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-top: 10px;
}

.login-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* FORMULARIO Y CAMPOS */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 16px 50px 16px 50px; 
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    color: #334155;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group input:focus + .input-icon {
    color: #3b82f6;
}

/* BOTÓN DE VER CONTRASEÑA */
.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #3b82f6;
}

/* SECCIÓN DE RECORDAR Y OLVIDO */
.remember-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* BOTÓN ANIMADO PRINCIPAL */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.btn-primary:active {
    transform: translateY(0);
}