
        :root{
            --ink:#14243B;
            --deep:#1B4382;
            --teal:#2456A6;
            --mint:#76A2EB;
            --paper:#F3F6F8;
            --line: rgba(14,42,71,0.10);
            --danger:#C4453A;
            --danger-bg:#FBEAE8;
            --warn-bg:#FFF6E5;
            --warn-line:#F0D28A;
        }

        *{box-sizing:border-box;}

        html,body{height:100%;}

        .login-page-body{
            margin:0;
            padding:0;
            display:block;
            min-height:100vh;
            min-height:100dvh;
            width:100%;
            background:var(--paper);
            font-family:'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            color:var(--ink);
        }

        main.login-container-custom{
            width:100%;
            max-width:none;
            min-height:100vh;
            margin:0;
            padding:0;
            background:#fff;
        }

        .row.g-0.h-100{ min-height:100vh; margin:0; }
        .row.g-0.h-100 > [class*="col-"]{ min-height:100vh; }

        /* ---------- Left brand panel ---------- */
        .login-left-custom{
            position:relative;
            background:linear-gradient(180deg, #FFFFFF 0%, #E8F0FF 100%);
            padding:64px 56px;
            display:flex;
            flex-direction:column;
            justify-content:flex-start;
            color:var(--ink);
            overflow:visible;
            border-right:1px solid var(--line);
        }

        /* Faint circuit/grid linework, echoing the mark's own background art */
        .login-left-custom::before{
            content:"";
            position:absolute;
            inset:0;
            opacity:1;
            background-image:
                linear-gradient(rgba(14,42,71,0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(14,42,71,0.05) 1px, transparent 1px);
            background-size:56px 56px;
            -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 60%), radial-gradient(ellipse at bottom left, black 0%, transparent 50%);
            mask-image: radial-gradient(ellipse at top right, black 0%, transparent 60%), radial-gradient(ellipse at bottom left, black 0%, transparent 50%);
        }

        /* Ring accent echoing the swoosh that circles the mark's shield */
        .brand-decoration{
            position:absolute;
            inset:0;
            overflow:hidden;
            pointer-events:none;
        }
        .brand-swoosh{
            position:absolute;
            width:340px;
            height:340px;
            right:-130px;
            bottom:-120px;
            border-radius:50%;
            background:conic-gradient(from 210deg, var(--deep), var(--teal), var(--mint), var(--deep));
            -webkit-mask-image: radial-gradient(circle, transparent 66%, black 67%, black 80%, transparent 81%);
            mask-image: radial-gradient(circle, transparent 66%, black 67%, black 80%, transparent 81%);
            opacity:0.55;
            transform:rotate(-8deg);
            pointer-events:none;
        }

        .login-left-custom > *:not(.brand-decoration){ position:relative; z-index:1; }

        .login-brand-image{
            max-width:100%;
            height:auto;
            width:360px;
            margin-bottom:36px;
        }

        .brand-intro{
            font-size:15.5px;
            line-height:1.65;
            color:#4B5B6A;
            max-width:42ch;
            margin:0 0 32px;
        }

        .brand-stats{
            display:flex;
            gap:0;
            margin-bottom:36px;
            padding:20px 0;
            border-top:1px solid var(--line);
            border-bottom:1px solid var(--line);
        }

        .brand-stats > div{
            flex:1;
            padding:0 20px;
        }

        .brand-stats > div + div{
            border-left:1px solid var(--line);
        }

        .brand-stats strong{
            display:block;
            font-family:'Sora', sans-serif;
            font-size:22px;
            font-weight:700;
            color:var(--ink);
            line-height:1.2;
        }

        .brand-stats span{
            display:block;
            font-size:12.5px;
            color:#6B7A87;
            margin-top:3px;
        }

        .brand-benefits{
            display:flex;
            flex-direction:column;
            gap:20px;
            margin-bottom:32px;
        }

        .brand-benefits > div{
            display:flex;
            align-items:flex-start;
            gap:14px;
        }

        .brand-benefits i{
            width:38px;
            height:38px;
            flex:0 0 38px;
            border-radius:10px;
            background:linear-gradient(135deg, var(--deep), var(--teal));
            display:flex;
            align-items:center;
            justify-content:center;
            font-size:15px;
            color:#fff;
            box-shadow:0 6px 14px -4px rgba(36,86,166,0.45);
        }

        .brand-benefits strong{
            display:block;
            font-family:'Sora', sans-serif;
            font-size:14.5px;
            font-weight:700;
            color:var(--ink);
            margin-bottom:2px;
        }

        .brand-benefits small{
            display:block;
            font-size:13px;
            color:#6B7A87;
        }

        .secure-badge-custom{
            display:inline-flex;
            align-items:center;
            gap:9px;
            font-size:13px;
            color:#5B6B7A;
            padding-top:20px;
            border-top:1px solid var(--line);
            width:fit-content;
        }

        .secure-badge-custom i{ color:var(--teal); }

        /* ---------- Right form panel ---------- */
        .login-right-custom{
            background:#fff;
            display:flex;
            align-items:center;
            justify-content:center;
            padding:56px 48px;
        }

        .login-form-wrap{ width:100%; max-width:360px; }

        .login-mobile-brand{ display:none; margin-bottom:24px; }
        .login-mobile-brand img{ height:34px; }

        .signin-eyebrow{
            display:block;
            font-size:13px;
            font-weight:600;
            color:var(--teal);
            margin-bottom:6px;
        }

        .login-header-custom h2{
            font-family:'Sora', sans-serif;
            font-size:26px;
            font-weight:700;
            color:var(--ink);
            margin:0 0 8px;
        }

        .login-header-custom p{
            font-size:14px;
            color:#5B6B7A;
            margin:0 0 28px;
        }

        .login-field{
            position:relative;
            margin-bottom:20px;
        }

        .login-field label{
            display:block;
            font-size:13px;
            font-weight:600;
            color:var(--ink);
            margin-bottom:7px;
        }

        .login-field i{
            position:absolute;
            left:0;
            top:38px;
            color:#9AA9B6;
            font-size:14px;
        }

        .form-control-custom{
            width:100%;
            border:none;
            border-bottom:1.5px solid #DCE3E8;
            border-radius:0;
            padding:8px 8px 8px 26px;
            font-size:15px;
            font-family:inherit;
            color:var(--ink);
            background:transparent;
            transition:border-color .15s ease;
        }

        .form-control-custom::placeholder{ color:#AEB9C2; }

        .form-control-custom:focus{
            outline:none;
            border-bottom-color:var(--teal);
        }

        .btn-login-custom{
            background:linear-gradient(120deg, var(--deep), var(--teal));
            color:#fff;
            border:none;
            border-radius:10px;
            padding:13px 18px;
            font-weight:700;
            font-size:15px;
            letter-spacing:0.2px;
            transition:filter .15s ease, transform .15s ease;
        }

        .btn-login-custom:hover{ filter:brightness(1.06); }
        .btn-login-custom:active{ transform:translateY(1px); }
        .btn-login-custom:disabled{ opacity:0.75; }

        #captcha-box{
            background:var(--warn-bg);
            border:1px solid var(--warn-line);
            border-radius:10px;
            padding:14px;
        }

        #captcha-box label{
            font-size:12.5px;
            color:#6B5A28;
            margin:8px 0 6px;
        }

        #captcha-box img{
            border-radius:6px;
            border:1px solid var(--warn-line);
            display:block;
        }

        #email-unlock{
            background:var(--paper);
            border:1px solid var(--line);
            border-radius:10px;
            padding:16px;
            font-size:13.5px;
        }

        #email-unlock p{ margin:0 0 10px; color:#5B6B7A; }
        #unlock-message{ font-size:12.5px; color:var(--teal); min-height:16px; }

        .login-help-link{
            font-size:13px;
            color:#5B6B7A;
            text-decoration:none;
        }

        .login-help-link:hover{ color:var(--teal); }

        .divider-custom{
            text-align:center;
            font-size:12px;
            color:#9AA9B6;
            margin:24px 0 16px;
            position:relative;
        }

        .divider-custom::before, .divider-custom::after{
            content:"";
            position:absolute;
            top:50%;
            width:38%;
            height:1px;
            background:var(--line);
        }
        .divider-custom::before{ left:0; }
        .divider-custom::after{ right:0; }

        #error-alert{
            background:var(--danger-bg) !important;
            border:1px solid #F1C7C2 !important;
            color:var(--danger) !important;
        }

        @media (min-width: 992px) and (max-height: 800px){
            .login-left-custom{padding:32px 40px;}
            .login-brand-image{width:300px;margin-bottom:24px;}
            .brand-intro{margin-bottom:24px;}
            .brand-stats{display:none;}
            .brand-benefits{gap:16px;margin-bottom:24px;}
            .login-right-custom{padding:32px 40px;}
        }
        @media (max-width: 991.98px){
            .login-left-custom{ display:none; }
            .login-mobile-brand{ display:block; text-align:center; }
            .login-right-custom{ padding:40px 28px; }
            main.login-container-custom{ border-radius:16px; }
        }
    


/* MobiBooks login layout. */
.login-left-custom {
    background: linear-gradient(120deg, #ffffff 0%, #f5f9ff 52%, #e8f0ff 100%);
    padding: clamp(36px, 5vw, 76px);
    justify-content: center;
}
.login-left-custom::before { display: none; }
.login-brand-image { width: 360px; margin-bottom: 40px; position: relative; z-index: 1; }
.login-brand-headline {
    font: 700 clamp(26px, 3vw, 44px)/1.3 'Sora', sans-serif;
    letter-spacing: -.04em;
    margin: 0 0 40px;
    position: relative;
    z-index: 1;
}
.login-brand-headline span { color: #2456a6; }
.login-left-custom .brand-benefits { gap: 18px; margin-bottom: 45px; position: relative; z-index: 1; }
.login-left-custom .brand-benefits > div { gap: 20px; align-items: center; }
.login-left-custom .brand-benefits i {
    flex-basis: 48px; width: 48px; height: 48px;
    color: #2456a6; background: #e5efff; font-size: 27px;
    border-radius: 16px; box-shadow: none;
}
.login-left-custom .brand-benefits strong { font-size: 18px; margin-bottom: 5px; }
.login-left-custom .brand-benefits small { font-size: 14px; line-height: 1.6; max-width: 40ch; }
.login-background-icons {
    position: absolute; inset: auto 25px 22px;
    display: flex; align-items: center; justify-content: space-around;
    color: #a9c7f3; opacity: .27; font-size: clamp(32px, 5vw, 70px);
    pointer-events: none;
}
.login-background-icons i:nth-child(odd) { transform: rotate(-14deg); }
.login-background-icons i:nth-child(even) { transform: rotate(10deg); }
.login-right-custom .btn-login-custom { background: #2456a6; margin-top: 18px; }
.login-right-custom .login-form-wrap { max-width: 380px; }
.login-mobile-brand img { height: auto; width: 270px; max-width: 100%; }
@media (max-width: 991.98px) {
    .login-right-custom { min-height: 100dvh; padding: 32px 24px; }
}
@media (min-width: 992px) and (max-height: 800px) {
    .login-left-custom { padding-top: 32px; padding-bottom: 32px; }
    .login-brand-image { width: 300px; margin-bottom: 24px; }
    .login-brand-headline { font-size: 30px; margin-bottom: 24px; }
    .login-left-custom .brand-benefits { gap: 12px; margin-bottom: 24px; }
}
