  @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

        * { 
            box-sizing: border-box; 
        }

        .custom-login-page {
            font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
        }

        .custom-login-page [x-cloak] {
            display: none !important;
        }

        /* ── Filament layout overrides ── */
        .fi-simple-layout {
            min-height: 100vh !important;
            padding: 0 !important;
            display: flex !important;
            align-items: stretch !important;
        }

        .fi-simple-main-ctn {
            width: 100% !important;
            min-height: 100vh !important;
            padding: 0 !important;
            display: flex !important;
            align-items: stretch !important;
        }

        .custom-login-page .fi-simple-main,
        .fi-simple-layout .fi-simple-main {
            max-width: 100% !important;
            width: 100% !important;
            min-height: 100vh !important;
            padding: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            margin: 0 !important;
            border-radius: 0 !important;
        }

        .custom-login-page .fi-simple-main::before {
            display: none !important;
        }

        /* ── Two-column wrapper ── */
        .login-wrapper {
            display: grid;
            grid-template-columns: 3fr 2fr;
            min-height: 100vh;
            width: 100%;
        }

        /* ── Left panel ── */
        .login-left {
                position: relative;
                overflow: hidden;
                display: flex;
                flex-direction: column;
                justify-content: flex-end; /* Para ang content laging nasa baba */
            }

        .login-left video.bg-img {
                position: absolute;
                inset: 0;
                width: 100% !important;
                height: 100% !important;
                object-fit: cover; /* Eto ang magpapa-full height/width nang hindi pinitpit */
                object-position: center;
                z-index: 0;
        }
        .login-left .overlay {
            position: absolute;
            inset: 0;
            z-index: 1;
            background: linear-gradient(
                to top, 
                rgba(0, 0, 0, 0.8) 0%,     
                rgba(0, 0, 0, 0.4) 30%,    
                rgba(0, 0, 0, 0) 70%        
            ) !important;
        }
        .login-left img.bg-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .login-left .overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.15) 100%);
        }

        .login-left .content {
            position: relative; 
            padding: 3rem 2.5rem;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
            margin-top: auto; 
        }
        .login-left h1, 
        .login-left p.subtext, 
        .login-left .tagline {
            color: #ffffff !important;
        }
        .login-left .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 0.75rem;
            padding: 0.5rem 0.75rem;
            width: fit-content;
        }

        .login-left .badge img {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 0.5rem;
            object-fit: cover;
        }

        .login-left .badge span {
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.2em;
            color: #fff;
        }

        .login-left h1 {
            font-size: 2.25rem;
            font-weight: 900;
            color: #fff;
            line-height: 1.2;
            margin: 0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }

        .login-left p.subtext {
            font-size: 0.875rem;
            color: rgb(212 212 216);
            line-height: 1.6;
            max-width: 28rem;
            margin: 0;
        }

        .login-left .tagline {
            border-left: 4px solid rgb(239 68 68);
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(8px);
            padding: 0.75rem 1rem;
            border-radius: 0 0.5rem 0.5rem 0;
            font-size: 0.875rem;
            color: rgb(212 212 216);
            line-height: 1.6;
        }

        /* ── Right panel ── */
        .login-right {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #fff;
            padding: 3rem 2.5rem;
            overflow: hidden;
        }

        .login-right .glow-top {
            position: absolute;
            top: -3rem;
            right: -3rem;
            width: 12rem;
            height: 12rem;
            border-radius: 9999px;
            background: rgba(239,68,68,0.08);
            filter: blur(40px);
            pointer-events: none;
        }

        .login-right .glow-bottom {
            position: absolute;
            bottom: -3rem;
            left: -3rem;
            width: 10rem;
            height: 10rem;
            border-radius: 9999px;
            background: rgba(239,68,68,0.06);
            filter: blur(32px);
            pointer-events: none;
        }

        .login-right .form-inner {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 22rem;
        }

        .login-right .brand-row {
            display: flex;
            align-items: center;
            justify-content: center; /* I-center ang logo at text horizontally */
            gap: 0.75rem;
            margin-bottom: 1.75rem;
            width: 100%; /* Siguradong sakop ang buong lapad */
        }
        .login-right .brand-row div {
            display: flex;
            flex-direction: column;
            align-items: flex-start; /* Panatilihing left-aligned ang text RELATIVE sa logo */
        }

        .login-right .brand-row img {
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 0.75rem;
            object-fit: cover;
        }

        .login-right .brand-name {
            font-size: 1.25rem;
            font-weight: 800;
            color: rgb(220 38 38);
            letter-spacing: -0.01em;
        }

        .login-right .brand-sub {
            font-size: 0.65rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: rgb(107 114 128);
        }

        .login-right h2 {
            text-align: center;
            font-size: 1.75rem;
            font-weight: 700;
            width: 100%;
            color: rgb(17 24 39);
            margin: 0 0 0.25rem 0;
        }

        .login-right .subtitle {
            font-size: 0.875rem;
            color: rgb(107 114 128);
            margin: 0 0 1.75rem 0;
            text-align: center; /* I-center ang subtitle */
            width: 100%;
        }

        /* ── Input styles ── */
        .custom-login-page .fi-input,
        .custom-login-page .fi-select-input,
        .custom-login-page .fi-textarea {
            background-color: rgb(243 244 246) !important;
            color: rgb(17 24 39) !important;
            border-color: rgb(229 231 235) !important;
            border-radius: 0.75rem !important;
            padding: 0.75rem 1rem !important;
            font-size: 0.875rem !important;
            transition: all 150ms ease;
        }

        .custom-login-page .fi-input-wrp,
        .custom-login-page .fi-input-wrp .fi-input,
        .custom-login-page .fi-input-wrp .fi-input-wrp-suffix {
            border-color: rgb(229 231 235) !important;
            border-radius: 0.75rem !important;
        }

        .custom-login-page .fi-input-wrp .fi-input-wrp-suffix {
            background-color: rgb(243 244 246) !important;
            border-start-end-radius: 0.75rem !important;
            border-end-end-radius: 0.75rem !important;
        }

        .custom-login-page .fi-input:focus,
        .custom-login-page .fi-select-input:focus {
            border-color: rgb(220 38 38) !important;
            box-shadow: 0 0 0 3px rgba(239,68,68,0.2) !important;
        }

        .custom-login-page .fi-input-wrp:focus-within {
            border-color: rgb(239 68 68) !important;
            box-shadow: 0 0 0 2px rgba(239,68,68,0.2) !important;
        }

        .custom-login-page .fi-input::placeholder {
            color: rgb(156 163 175) !important;
        }

        .custom-login-page .fi-fo-field-wrp-label,
        .custom-login-page .fi-fo-field-wrp-label span {
            color: rgb(55 65 81) !important;
            font-size: 0.875rem !important;
            font-weight: 500 !important;
        }

        .custom-login-page .fi-checkbox-label {
            color: rgb(55 65 81) !important;
            font-size: 0.875rem !important;
        }

        .custom-login-page input[type='checkbox'] {
            accent-color: rgb(220 38 38);
        }

        .custom-login-page .fi-input-wrp-suffix * {
            cursor: pointer;
            transition: color 150ms ease;
        }

        .custom-login-page .fi-input-wrp-suffix:hover * {
            color: rgb(248 113 113) !important;
        }

        .custom-login-page form .fi-fo-component-ctn + .fi-fo-component-ctn {
            margin-top: 1.25rem;
        }

        /* ── Button ── */
        .custom-login-page .fi-btn.fi-color-custom {
            background-image: linear-gradient(to right, rgb(220,38,38), rgb(185,28,28)) !important;
            color: #fff !important;
            font-weight: 600 !important;
            letter-spacing: 0.02em !important;
            border-radius: 0.75rem !important;
            border-color: rgb(127,29,29) !important;
            box-shadow: 0 8px 20px rgba(127,29,29,0.3) !important;
            transition: all 200ms ease !important;
        }

        .custom-login-page .fi-btn.fi-color-custom:hover {
            background-image: linear-gradient(to right, rgb(185,28,28), rgb(153,27,27)) !important;
        }

        .custom-login-page .fi-btn.fi-color-custom:active {
            transform: scale(0.98);
        }

        .custom-login-page .fi-btn.fi-color-custom:disabled {
            opacity: 0.85 !important;
            cursor: wait !important;
            transform: none !important;
        }

        .custom-login-page .login-submit-loading {
            width: 1.5rem;
            height: 1.5rem;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .custom-login-page .login-submit-spinner {
            width: 1rem;
            height: 1rem;
            display: block;
            box-sizing: border-box;
            border-radius: 9999px;
            border: 3px solid rgba(255, 255, 255, 0.28);
            border-top-color: #ffffff;
            border-right-color: #ffffff;
            animation: login-spin 0.75s linear infinite;
        }

        @keyframes login-spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ── Links ── */
        .custom-login-page a {
            color: rgb(220 38 38) !important;
            font-size: 0.8rem !important;
            text-underline-offset: 2px;
        }

        .custom-login-page a:hover {
            color: rgb(185 28 28) !important;
        }

        .register-link {
            margin-top: 1rem;
            text-align: center;
        }

        .forgot-password-link {
            margin-top: -1rem;
            margin-bottom: 1.1rem;
            text-align: right;
            line-height: 1;
        }
        @media (max-width: 768px) {
            .login-left {
                display: none !important;
            }
            .login-wrapper {
                grid-template-columns: 1fr !important;
            }
            .login-right {
                padding: 3rem 1.5rem !important;
                min-height: 100vh;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important; 
                justify-content: center !important; 
                text-align: center !important; 
            }
            .login-right .form-inner {
                width: 100% !important;
                max-width: 100% !important;
            }

            .login-right .brand-row {
                justify-content: center !important;
                margin-bottom: 2rem !important;
            }

            .login-right .brand-row div {
                text-align: left; 
            }

            .login-right .divider {
                margin: 0.75rem auto 1.25rem auto !important;
            }

            .custom-login-page .fi-fo-field-wrp-label,
            .custom-login-page .fi-checkbox-label {
                text-align: left !important;
                display: block !important;
                width: 100%;
            }

            .custom-login-page .fi-input-wrp {
                text-align: left !important;
            }

            .register-link {
                text-align: center !important;
                width: 100%;
            }

            .forgot-password-link {
                margin-top: -1rem;
                margin-bottom: 0.5rem;
            }
        }

          .login-right {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #fff; 
            padding: 3rem 2.5rem;
            overflow: hidden;
            transition: background 0.3s ease; 
        }
    
        .dark .login-right {
            background: #111827; 
        }

        .dark .login-right h2 {
            color: #fff;
        }
        .dark .login-right .subtitle {
            color: rgb(156 163 175);
        }
        .dark .custom-login-page .fi-input {
            background-color: rgb(31 41 55) !important;
            color: #fff !important;
            border-color: rgb(55 65 81) !important;
        }