/* Wazobia Admin — custom panel styling (topbar polish + split-screen login).
   Loaded alongside Filament's own compiled CSS via FilamentAsset::register()
   in AppServiceProvider — additive only, never replaces Filament's base
   theme, so every existing page keeps its default styling untouched. */

/* ---------- Topbar ---------- */

.fi-topbar nav.fi-topbar {
    box-shadow: 0 1px 0 0 rgb(53 108 82 / 0.08), 0 1px 3px 0 rgb(0 0 0 / 0.04);
    border-bottom: 1px solid rgb(53 108 82 / 0.08);
}

.fi-topbar nav.fi-topbar::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #356c52 0%, #5a9c78 50%, #f5a623 100%);
}

.fi-logo img {
    border-radius: 0.5rem;
}

/* ---------- Login: split-screen layout ---------- */

.fi-wazobia-auth-split {
    display: flex;
    min-height: 100dvh;
    background: #ffffff;
}

.fi-wazobia-auth-brand-panel {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 44%;
    padding: 4rem 3.5rem;
    background: radial-gradient(120% 120% at 15% 10%, #3f7a5e 0%, #244539 65%, #16281f 100%);
    color: #ffffff;
}

@media (min-width: 1024px) {
    .fi-wazobia-auth-brand-panel {
        display: flex;
    }
}

.fi-wazobia-auth-brand-panel-pattern {
    position: absolute;
    inset: 0;
    background-image: url('/images/auth-bg-pattern.png');
    background-position: center 85%;
    background-size: 140%;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
}

.fi-wazobia-auth-brand-panel-content {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.fi-wazobia-auth-brand-logo {
    height: 3.5rem;
    width: auto;
    border-radius: 0.875rem;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
    margin-bottom: 2rem;
}

.fi-wazobia-auth-brand-heading {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.fi-wazobia-auth-brand-subheading {
    font-size: 1rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.85);
    margin-bottom: 2.5rem;
}

.fi-wazobia-auth-brand-points {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fi-wazobia-auth-brand-points li {
    position: relative;
    padding-inline-start: 1.75rem;
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.9);
}

.fi-wazobia-auth-brand-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.12);
    border: 1.5px solid rgb(255 255 255 / 0.55);
}

.fi-wazobia-auth-brand-points li::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.675rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #f5a623;
}

.fi-wazobia-auth-form-panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.fi-wazobia-auth-form-panel-inner {
    width: 100%;
    max-width: 24rem;
}

/* The brand panel (and its logo) is hidden below the lg breakpoint, so the
   form side carries a compact logo instead — never leave the login screen
   with no brand mark at all on a phone. */
.fi-wazobia-auth-compact-logo {
    display: block;
    height: 2.5rem;
    width: auto;
    margin: 0 auto 1.5rem;
    border-radius: 0.625rem;
}

@media (min-width: 1024px) {
    .fi-wazobia-auth-compact-logo {
        display: none;
    }
}
