/* ============================================================
   TOPBAR STYLES
   ============================================================ */
.fi-topbar {
    background-color: #5D71BC !important;
    color: #FFFFFF !important;
}

.fi-topbar div[class*="fi-sidebar-trigger"] .fi-icon-btn svg,
.fi-topbar .fi-icon-btn[aria-label*="Sidebar"],
.fi-topbar .fi-icon-btn svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
    stroke-width: 3px !important;
}

.fi-topbar .fi-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================================
   AUTH CARD SECTION (Used in Login/Register forms)
   ============================================================ */
.auth-card-section {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    transition: all 0.3s ease !important;
}

.dark .auth-card-section {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.auth-card-section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.dark .auth-card-section:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Section icon styling */
.auth-card-section .fi-section-header-icon {
    background: linear-gradient(135deg, #5D71BC 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 0.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(93, 113, 188, 0.3) !important;
}

/* ============================================================
   AUTH PAGES - ANIMATED GRADIENT BACKGROUND
   ============================================================ */
.fi-simple-layout {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Animated gradient background */
.fi-simple-layout::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg,
            #667eea,
            #764ba2,
            #5D71BC,
            #4facfe,
            #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

/* Dark mode gradient */
.dark .fi-simple-layout::before {
    background: linear-gradient(-45deg,
            #1a1a2e,
            #16213e,
            #0f3460,
            #1a1a2e,
            #16213e);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating orbs effect */
.fi-simple-layout::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
    animation: floatOrbs 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.dark .fi-simple-layout::after {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(93, 113, 188, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 60%, rgba(0, 242, 254, 0.08) 0%, transparent 30%);
}

@keyframes floatOrbs {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(2%, -2%) scale(1.02);
    }

    50% {
        transform: translate(-1%, 1%) scale(0.98);
    }

    75% {
        transform: translate(1%, 2%) scale(1.01);
    }
}

/* ============================================================
   AUTH CARD ENHANCEMENTS
   ============================================================ */
.fi-simple-main-ctn {
    position: relative;
    z-index: 1;
}

/* Enhanced glassmorphism for auth cards */
.fi-simple-main {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dark .fi-simple-main {
    background: rgba(17, 24, 39, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.fi-simple-main:hover {
    transform: translateY(-4px);
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.dark .fi-simple-main:hover {
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   LOGO ANIMATION
   ============================================================ */
.fi-simple-header img,
.fi-logo img {
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.fi-simple-header img:hover,
.fi-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ============================================================
   FORM INPUT ENHANCEMENTS
   ============================================================ */
.fi-simple-main .fi-input-wrapper {
    transition: all 0.3s ease;
}

.fi-simple-main .fi-input {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dark .fi-simple-main .fi-input {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fi-simple-main .fi-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #5D71BC !important;
    box-shadow:
        0 0 0 3px rgba(93, 113, 188, 0.15),
        0 4px 12px rgba(93, 113, 188, 0.1) !important;
    transform: translateY(-1px);
}

.dark .fi-simple-main .fi-input:focus {
    background: rgba(30, 41, 59, 0.9) !important;
    box-shadow:
        0 0 0 3px rgba(93, 113, 188, 0.25),
        0 4px 12px rgba(93, 113, 188, 0.2) !important;
}

/* ============================================================
   BUTTON ENHANCEMENTS
   ============================================================ */
.fi-simple-main .fi-btn-primary {
    background: linear-gradient(135deg, #5D71BC 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    box-shadow:
        0 4px 14px rgba(93, 113, 188, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.fi-simple-main .fi-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.fi-simple-main .fi-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(93, 113, 188, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.fi-simple-main .fi-btn-primary:hover::before {
    left: 100%;
}

.fi-simple-main .fi-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================================
   SECTION HEADER ENHANCEMENTS
   ============================================================ */
.fi-simple-main .fi-section-header {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.fi-simple-main .fi-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #5D71BC, #764ba2);
    border-radius: 3px;
}

.fi-simple-main .fi-section-header-heading {
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .fi-simple-main .fi-section-header-heading {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fi-simple-main .fi-section-header-description {
    color: #64748b !important;
    font-size: 0.95rem !important;
}

.dark .fi-simple-main .fi-section-header-description {
    color: #94a3b8 !important;
}

/* ============================================================
   LINKS ENHANCEMENT
   ============================================================ */
.fi-simple-main a:not(.fi-btn) {
    color: #5D71BC !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.fi-simple-main a:not(.fi-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5D71BC, #764ba2);
    transition: width 0.3s ease;
}

.fi-simple-main a:not(.fi-btn):hover {
    color: #764ba2 !important;
}

.fi-simple-main a:not(.fi-btn):hover::after {
    width: 100%;
}

/* ============================================================
   CHECKBOX ENHANCEMENT
   ============================================================ */
.fi-simple-main .fi-checkbox-input:checked {
    background: linear-gradient(135deg, #5D71BC 0%, #764ba2 100%) !important;
    border-color: #5D71BC !important;
}

/* ============================================================
   FOOTER LINKS
   ============================================================ */
.fi-simple-footer {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   FLOATING PARTICLES (Optional visual enhancement)
   ============================================================ */
.auth-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

.dark .auth-particle {
    background: rgba(93, 113, 188, 0.3);
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Stagger animation for multiple particles */
.auth-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.auth-particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.auth-particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.auth-particle:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.auth-particle:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.auth-particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.auth-particle:nth-child(7) {
    left: 70%;
    animation-delay: 0s;
    animation-duration: 14s;
}

.auth-particle:nth-child(8) {
    left: 80%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.auth-particle:nth-child(9) {
    left: 90%;
    animation-delay: 4s;
    animation-duration: 16s;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 640px) {
    .fi-simple-main {
        border-radius: 16px !important;
        margin: 1rem !important;
    }

    .fi-simple-main .fi-btn-primary {
        width: 100%;
    }
}

/* ============================================================
   LOADING STATE ENHANCEMENT
   ============================================================ */
.fi-simple-main .fi-btn-primary[wire\:loading] {
    position: relative;
    color: transparent !important;
}

.fi-simple-main .fi-btn-primary[wire\:loading]::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpinner 0.8s linear infinite;
}

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