/* === Great Ledger v2 Custom Login CSS === */
/* Replaces Tailwind utility classes for guaranteed layout consistency */

/* --- Layout Structure --- */
.fi-custom-login-layout {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #fff;
    margin: 0 !important;
    padding: 0 !important;
}

.dark .fi-custom-login-layout {
    background-color: #030712;
    /* gray-950 */
}

/* --- Left Panel (Hero) --- */
.fi-custom-hero {
    display: none;
    /* Hidden on mobile by default */
    width: 50%;
    position: relative;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
    color: white;
    padding: 3rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Enable on desktop */
@media (min-width: 1024px) {
    .fi-custom-hero {
        display: flex;
    }
}

/* Hero Background Decorations */
.fi-hero-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decor-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}

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

.decor-blob-1 {
    top: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 4s ease-in-out infinite;
}

.decor-blob-2 {
    top: 40%;
    right: -20px;
    width: 300px;
    height: 300px;
    background: rgba(167, 139, 250, 0.2);
    animation: pulse 5s ease-in-out infinite 0.5s;
}

.decor-blob-3 {
    bottom: -50px;
    left: 20%;
    width: 250px;
    height: 250px;
    background: rgba(129, 140, 248, 0.2);
    animation: pulse 6s ease-in-out infinite 1s;
}

/* Hero Content */
.fi-hero-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.brand-container {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo-bg {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-gradient {
    background: linear-gradient(to right, #99f6e4, #a5f3fc, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(224, 231, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.feature-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: rgba(224, 231, 255, 0.8);
}

.heritage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: rgba(224, 231, 255, 0.8);
}

.heritage-badge .separator {
    opacity: 0.5;
}

.heritage-badge .developer {
    color: #5eead4;
    /* teal-300 */
    font-weight: 500;
}

/* --- Right Panel (Form) --- */
.fi-custom-form-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: white;
}

.dark .fi-custom-form-panel {
    background-color: #030712;
}

@media (min-width: 1024px) {
    .fi-custom-form-panel {
        width: 50%;
    }
}

.form-container {
    width: 100%;
    max-width: 450px;
}

.mobile-brand {
    text-align: center;
    margin-bottom: 2rem;
    display: none;
}

@media (max-width: 1023px) {
    .mobile-brand {
        display: block;
    }
}

.mobile-brand-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.mobile-brand-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .mobile-brand-subtitle {
    color: #9ca3af;
}

.form-header {
    margin-bottom: 2rem;
    text-align: left;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dark .form-title {
    color: white;
}

.form-subtitle {
    font-size: 0.875rem;
    color: #4b5563;
}

.dark .form-subtitle {
    color: #9ca3af;
}

.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.dark .form-footer {
    border-top-color: #1f2937;
    color: #6b7280;
}

.footer-attribution {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.footer-dev {
    color: #6366f1;
    font-weight: 600;
}

/* --- Input & Button Styling (Overrides) --- */
.fi-input-wrp {
    border-radius: 0.875rem !important;
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease;
}

.dark .fi-input-wrp {
    background-color: #111827 !important;
    border-color: #374151 !important;
}

.fi-input-wrp:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.fi-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%) !important;
    border-radius: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fi-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

@keyframes pulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}