/* ==========================================================================
   Variables de Tema y Diseño
   ========================================================================== */
   :root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    
    /* Paleta Fucsia (Fiusha) */
    --fuchsia-main: #ff007f; /* Color principal */
    --fuchsia-glow: rgba(255, 0, 127, 0.6);
    --fuchsia-light: #ff3399;
    --fuchsia-dark: #b30059;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(25, 25, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Textos */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

/* ==========================================================================
   Configuración Base
   ========================================================================== */
body.login-body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-main);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
}

/* ==========================================================================
   Elementos Decorativos (Círculos de luz)
   ========================================================================== */
.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 10s ease-in-out infinite alternate;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--fuchsia-dark);
    top: -100px;
    left: -50px;
    opacity: 0.5;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(138, 43, 226, 0.4); /* Toque púrpura para contraste */
    bottom: -50px;
    right: -50px;
    opacity: 0.4;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 40px); }
}

/* ==========================================================================
   Glass Card
   ========================================================================== */
.container {
    position: relative;
    z-index: 1; /* Por encima de los círculos */
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fuchsia-main), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(255, 0, 127, 0.1);
}

/* ==========================================================================
   Logo & Typography
   ========================================================================== */
.logo-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 127, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 0, 127, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.logo-icon {
    font-size: 28px;
    color: var(--fuchsia-main);
    filter: drop-shadow(0 0 5px var(--fuchsia-main));
}

.title-neon {
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #ffb3d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 0, 127, 0.3);
}

.text-muted-custom {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Formulario & Inputs
   ========================================================================== */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.glass-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding-left: 2.8rem;
    padding-right: 2.5rem;
    height: 50px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 300;
}

.glass-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--fuchsia-main);
    box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.15);
    color: var(--text-main);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.3s ease;
}

.glass-input:focus ~ .input-icon,
.glass-input:not(:placeholder-shown) ~ .input-icon {
    color: var(--fuchsia-main);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--fuchsia-light);
}

/* ==========================================================================
   Checkbox & Links
   ========================================================================== */
.custom-checkbox {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.custom-checkbox:checked {
    background-color: var(--fuchsia-main);
    border-color: var(--fuchsia-main);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.custom-checkbox:focus {
    box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.2);
}

.forgot-link {
    color: var(--fuchsia-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--fuchsia-main);
    text-underline-offset: 4px;
}

/* ==========================================================================
   Botón Neon
   ========================================================================== */
.btn-neon-fuchsia {
    background: var(--fuchsia-main);
    color: white;
    border: none;
    border-radius: 12px;
    height: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
    z-index: 1;
}

.btn-neon-fuchsia:hover {
    background: var(--fuchsia-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.6);
}

.btn-neon-fuchsia:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 0, 127, 0.4);
}

.btn-neon-fuchsia::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.btn-neon-fuchsia:hover::after {
    left: 150%;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-neon-fuchsia:hover .btn-icon {
    transform: translateX(4px);
}

/* Validaciones Bootstrap Override */
.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: #ff4d4d;
    padding-right: calc(1.5em + 1.5rem);
    background-image: none;
}

.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.2);
}

.invalid-feedback {
    color: #ff6666;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 576px) {
    .glass-card {
        border-radius: 16px;
        margin: 0 15px;
    }
    
    .circle-1 {
        width: 180px;
        height: 180px;
        top: -30px;
        left: -30px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
        bottom: -30px;
        right: -30px;
    }
    
    .title-neon {
        font-size: 1.5rem;
    }
    
    .glass-input {
        font-size: 0.95rem;
        height: 45px;
    }
    
    .btn-neon-fuchsia {
        height: 45px;
        font-size: 0.95rem;
    }
    
    .logo-container {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
}
