/* KCA Holding Group - Admin Login */

/* Full-page background — scoped to login only */
.fi-simple-layout:has(.kca-login-branding) {
    background: #ffffff;
    min-height: 100dvh;
}

/* Card */
.fi-simple-layout:has(.kca-login-branding) .fi-simple-page-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    padding: 2.5rem !important;
}

/* ── Branding ─────────────────────────────────────── */

.kca-login-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.kca-login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.kca-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.kca-logo-kcargo {
    height: 42px;
}

.kca-logo-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
    flex-shrink: 0;
}

.kca-login-titles {
    text-align: center;
}

.kca-login-heading {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.kca-login-subheading {
    font-size: 0.8rem !important;
    color: #92400e !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem !important;
    font-weight: 500;
}

/* Reset default Filament heading styles so our branding shows cleanly */
.fi-simple-layout:has(.kca-login-branding) .fi-simple-header-heading {
    all: unset !important;
    display: block !important;
}

.fi-simple-layout:has(.kca-login-branding) .fi-simple-header-subheading {
    display: none !important;
}

/* ── Form — light theme refinements ──────────────── */

/* Submit button */
.fi-simple-layout:has(.kca-login-branding) .fi-btn-primary {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2) !important;
    transition: all 0.2s ease !important;
}

.fi-simple-layout:has(.kca-login-branding) .fi-btn-primary:hover {
    background: linear-gradient(135deg, #b45309, #d97706) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px);
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 640px) {
    .fi-simple-layout:has(.kca-login-branding) .fi-simple-page-content {
        padding: 1.75rem !important;
    }

    .kca-login-logos {
        gap: 1rem;
    }

    .kca-logo {
        height: 40px;
    }

    .kca-logo-kcargo {
        height: 32px;
    }

    .kca-logo-divider {
        height: 32px;
    }

    .kca-login-heading {
        font-size: 1.25rem !important;
    }

    .kca-login-subheading {
        font-size: 0.7rem !important;
    }
}
