/* ==========================================
   NextBulut Premium UI/UX Stylesheet
   Design: Light-focused Premium Split Screen
   ========================================== */

/* Apply modern typography globally in Filament simple pages */
body, 
.fi-simple-layout,
.fi-simple-page,
.fi-simple-page-content,
.fi-page,
input,
button,
label,
span,
p,
h1,
h2 {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Reset base background and body style for split page */
body.fi-body:has(.split-layout) {
    background-color: #f8fafc !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

/* Hide default Filament simple card layout constraints */
body:has(.split-layout) .fi-simple-layout {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    background: transparent !important;
    position: relative !important;
    padding: 0 !important;
}

body:has(.split-layout) .fi-simple-main-ctn,
body:has(.split-layout) .fi-simple-main,
body:has(.split-layout) .fi-simple-page {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ==========================================
   Split Layout Grid Configuration
   ========================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
}

@media (min-width: 1024px) {
    .split-layout {
        grid-template-columns: 480px 1fr;
    }
}

/* ==========================================
   Left Panel: Form Panel
   ========================================== */
.split-form-panel {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.02);
}

@media (min-width: 1024px) {
    .split-form-panel {
        padding: 4rem 3.5rem;
    }
}

.split-form-container {
    width: 100%;
    max-width: 380px;
    margin: auto 0;
}

/* Brand Header */
.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.brand-logo-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.brand-text {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    color: #0f172a !important;
}

/* Header Section */
.form-header {
    margin-bottom: 2rem;
}

.access-label {
    display: inline-flex;
    margin-bottom: .7rem;
    padding: .3rem .65rem;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    background: #fffbeb;
    color: #92400e !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
}

.form-header h1 {
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.form-subheading {
    font-size: 14.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

/* Forms Styling Override */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Force dark slate text color for labels and spans (prevents white dark:text-white overrides) */
.split-form-panel label,
.split-form-panel label span,
.split-form-panel label *,
.split-form-panel .fi-fo-field-label,
.split-form-panel .fi-fo-field-label span,
.split-form-panel .fi-fo-field-label *,
.split-form-panel .fi-fo-field-label-content,
.split-form-panel .fi-fo-field-label-content * {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important; /* Dark Slate color */
}

/* Hide native eye icon in Edge/Chrome to prevent double eye icons */
.login-form input[type="password"]::-ms-reveal,
.login-form input[type="password"]::-ms-clear,
.login-form input[type="password"]::-webkit-contacts-auto-fill-button,
.login-form input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* Style the wrapper so suffix/prefix icons blend seamlessly */
.login-form .fi-input-wrp {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.2s ease-in-out !important;
    overflow: hidden !important;
}

.login-form .fi-input-wrp:focus-within {
    background-color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08) !important;
}

/* Style text fields transparently inside the wrapper */
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="tel"],
.login-form input[type="number"],
.login-form textarea {
    background-color: transparent !important;
    border: none !important;
    font-size: 14.5px !important;
    padding: 0.75rem 1rem !important;
    box-shadow: none !important;
    color: #0f172a !important;
    width: 100% !important;
}

.login-form input:focus,
.login-form textarea:focus {
    box-shadow: none !important;
    border: none !important;
}

/* Keep checkboxes as native modern squares */
.login-form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
}

/* Style Filament link tags */
.login-form a,
.login-form .fi-link {
    color: #4f46e5 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.login-form a:hover,
.login-form .fi-link:hover {
    color: #3730a3 !important;
    text-decoration: underline !important;
}

/* Submit Action Button */
.form-actions {
    margin-top: 1.5rem;
}

.submit-btn {
    width: 100% !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.submit-btn:hover {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3) !important;
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(1px) scale(0.99) !important;
}

.btn-arrow {
    transition: transform 0.2s ease !important;
    stroke: currentColor;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px) !important;
}

.loading-spinner {
    font-size: 14.5px !important;
    opacity: 0.9;
}

/* Footer Section inside Form panel */
.split-form-footer {
    margin-top: 3.5rem;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-secured {
    font-weight: 500 !important;
    color: #64748b !important;
}

/* ==========================================
   Right Panel: Visual Presentation Panel
   ========================================== */
.split-visual-panel {
    display: none;
    background: radial-gradient(circle at 10% 20%, rgba(243, 244, 246, 0.5) 0%, transparent 80%),
                radial-gradient(circle at 80% 80%, rgba(224, 242, 254, 0.4) 0%, transparent 80%),
                radial-gradient(circle at 50% 50%, rgba(204, 251, 241, 0.3) 0%, transparent 80%),
                #f8fafc;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px) !important;
    background-size: 24px 24px !important;
    position: relative;
    overflow: hidden;
    padding: 4rem;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@media (min-width: 1024px) {
    .split-visual-panel {
        display: flex;
    }
}

.visual-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Badge */
.badge {
    align-self: flex-start;
    background-color: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4f46e5 !important;
    letter-spacing: -0.01em !important;
}

/* Typography */
.visual-content h2 {
    font-size: 34px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.04em !important;
    color: #0f172a !important;
}

.visual-desc {
    font-size: 15.5px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
}

/* Premium Card Mockup Graphic */
.visual-card-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.abstract-card {
    position: absolute;
    width: 360px;
    height: 216px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.main-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 45px rgba(100, 116, 139, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
    transform: rotate(0deg);
    animation: floatCard 6s ease-in-out infinite;
}

.shadow-card-1 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 19;
    transform: translate(-12px, 12px) scale(0.97) rotate(-1deg);
    animation: floatCardShadow1 6s ease-in-out infinite;
}

.shadow-card-2 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 18;
    transform: translate(-24px, 24px) scale(0.94) rotate(-2deg);
    animation: floatCardShadow2 6s ease-in-out infinite;
}

/* Card Mockup Elements */
.card-logo {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #4f46e5 !important;
}

.card-chip {
    width: 40px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-number {
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    color: #334155 !important;
}

.card-details {
    display: flex;
    justify-content: space-between;
}

.card-details span {
    display: block;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-bottom: 0.15rem !important;
}

.card-details strong {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

/* Floating Animations */
@keyframes floatCard {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatCardShadow1 {
    0% { transform: translate(-12px, 12px) scale(0.97) rotate(-1deg); }
    50% { transform: translate(-12px, 8px) scale(0.97) rotate(-0.5deg); }
    100% { transform: translate(-12px, 12px) scale(0.97) rotate(-1deg); }
}

@keyframes floatCardShadow2 {
    0% { transform: translate(-24px, 24px) scale(0.94) rotate(-2deg); }
    50% { transform: translate(-24px, 18px) scale(0.94) rotate(-1.5deg); }
    100% { transform: translate(-24px, 24px) scale(0.94) rotate(-2deg); }
}

/* Features List */
.visual-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
}

.feature-item svg {
    color: #4f46e5 !important;
}

/* Admin login is intentionally distinct from the customer payment entrance. */
.admin-login .brand-logo-dot,
.admin-login .submit-btn {
    background: linear-gradient(135deg, #0f172a 0%, #334155 70%, #d97706 100%) !important;
}

.admin-login .split-visual-panel {
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(100, 116, 139, .22) 1px, transparent 1px) !important;
}

.admin-login .badge {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412 !important;
}

.admin-login .feature-item svg {
    color: #b45309 !important;
}

.admin-access-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.4rem;
    border-color: rgba(203, 213, 225, .9);
}

.admin-shield {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #0f172a, #334155);
    color: #fbbf24;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .2);
}

.admin-shield svg { width: 42px; height: 42px; }
.admin-card-copy { display: flex; flex-direction: column; gap: .45rem; }
.admin-card-copy span { color: #b45309 !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .12em !important; }
.admin-card-copy strong { color: #0f172a !important; font-size: 17px !important; line-height: 1.25; }
.admin-card-copy small { color: #64748b !important; font-size: 12px !important; line-height: 1.45; }

/* ==========================================
   Customer Specific Styles overrides (uses Blue/Teal)
   ========================================== */
#customer-panel ~ * .brand-logo-dot {
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%) !important;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3) !important;
}

#customer-panel ~ * .submit-btn {
    background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

#customer-panel ~ * .submit-btn:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3) !important;
}

#customer-panel ~ * .card-logo {
    color: #2563eb !important;
}

#customer-panel ~ * .badge {
    background-color: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: #2563eb !important;
}

#customer-panel ~ * .feature-item svg {
    color: #2563eb !important;
}
