/* AppNeu - Premium Login Styles 
   Requires: Bootstrap 5, Plus Jakarta Sans Font
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Fondo con gradiente radial profundo */
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0b0f24 55%, #02040a 100%);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    color: #ffffff;
}

/* -----------------------------------------
   1. BACKGROUND PATTERNS (Grid & Dots)
----------------------------------------- */
.bg-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.bg-dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
    z-index: 1;
}

/* -----------------------------------------
   2. AMBIENT BLOBS (Esferas de luz animadas)
----------------------------------------- */
.ambient-blobs-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
}

.blob-1 {
    top: 20%; left: -10%;
    width: 600px; height: 600px;
    background: rgba(99, 102, 241, 0.2); /* Indigo */
    animation: ambientFloat 12s infinite ease-in-out;
}

.blob-2 {
    bottom: 20%; right: -10%;
    width: 650px; height: 650px;
    background: rgba(79, 70, 229, 0.2); /* Brand */
    animation: ambientFloatReverse 15s infinite ease-in-out;
}

.blob-3 {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 400px;
    background: rgba(34, 211, 238, 0.1); /* Cyan */
    filter: blur(150px);
}

.blob-4 {
    top: -5%; left: 30%;
    width: 500px; height: 500px;
    background: rgba(124, 58, 237, 0.15); /* Violet */
    animation: ambientFloat 14s infinite ease-in-out;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    33% { transform: translate(50px, -40px) scale(1.2); opacity: 0.65; }
    66% { transform: translate(-30px, 30px) scale(0.85); opacity: 0.35; }
}
@keyframes ambientFloatReverse {
    0%, 100% { transform: translate(0, 0) scale(1.15); opacity: 0.35; }
    50% { transform: translate(-40px, 50px) scale(0.9); opacity: 0.55; }
}

/* -----------------------------------------
   3. GLASSMORPHISM CARD (Tarjeta principal)
----------------------------------------- */
.glass-card {
    background: rgba(11, 17, 34, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    position: relative;
}

.glass-card:hover {
    transform: translateY(-2px);
}

/* -----------------------------------------
   4. FORM ELEMENTS & INPUTS
----------------------------------------- */
.form-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.custom-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 2.75rem; /* Space for icon */
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #6366f1; /* Indigo */
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    color: #ffffff;
}

.custom-input::placeholder {
    color: #64748b;
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.custom-input:focus ~ .input-icon,
.custom-input:focus + .input-icon {
    color: #6366f1;
}

/* Custom Checkbox */
.custom-checkbox {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.custom-checkbox:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* -----------------------------------------
   5. BUTTONS
----------------------------------------- */
.btn-premium {
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    background-color: #f8fafc;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

.btn-sso {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.btn-sso:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* -----------------------------------------
   6. UTILITIES & ALERTS
----------------------------------------- */
.divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

.alert-minimalist {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Eye Toggle button */
.toggle-password-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: #cbd5e1;
}