/* NBFC Software Login Page Styles */
/* Developed by TDH IT Solutions */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html, body { height: 100%; }

        body {
            font-family: 'DM Sans', sans-serif;
            height: 100vh;
            display: flex;
            overflow: hidden;
        }

        /* ---- Left panel ---- */
        .login-side {
            width: 38%;
            flex-shrink: 0;
            background: linear-gradient(160deg, #1a3a5c 0%, #0d2137 60%, #091828 100%);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 3rem 3rem 2.5rem;
            position: relative;
            overflow: hidden;
        }

        .side-brand { flex: 1; }

        /* Decorative circles on left panel */
        .login-side::before {
            content: '';
            position: absolute;
            width: 320px; height: 320px;
            border-radius: 50%;
            border: 1px solid rgba(55,138,221,0.12);
            top: -80px; right: -80px;
        }
        .login-side::after {
            content: '';
            position: absolute;
            width: 200px; height: 200px;
            border-radius: 50%;
            border: 1px solid rgba(55,138,221,0.08);
            bottom: 60px; left: -60px;
        }

        .side-logo {
            width: 52px;
            height: 52px;
            background: rgba(55,138,221,0.18);
            border: 1px solid rgba(55,138,221,0.3);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .side-logo i { font-size: 24px; color: #7BBFF0; }

        .side-brand h1 {
            font-family: 'Playfair Display', serif;
            font-size: 32px;
            font-weight: 600;
            color: #fff;
            line-height: 1.15;
            margin-bottom: 10px;
        }

        .side-brand p {
            font-size: 11px;
            color: #5A82A8;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .side-tagline {
            font-size: 13px;
            color: #3A6080;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            max-width: 240px;
        }

        .side-company-top {
            display: flex;
            align-items: center;
            background: rgba(55,138,221,0.12);
            border: 1px solid rgba(55,138,221,0.25);
            border-radius: 8px;
            padding: 9px 14px;
            margin-bottom: 1.5rem;
            color: #7BBFF0;
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.01em;
        }

        .side-bottom {
            margin-top: auto;
        }
.side-copy {
            font-size: 11px;
            color: #3A5A7A;
            line-height: 1.7;
        }

        .side-copy strong {
            color: #5A8AAA;
            font-weight: 500;
        }

        .side-dots { display: flex; gap: 7px; }
        .side-dots span { width: 7px; height: 7px; border-radius: 50%; background: #1D3D5A; }
        .side-dots span:first-child { background: #378ADD; width: 20px; border-radius: 4px; }

        /* ---- Right panel ---- */
        .login-main {
            flex: 1;
            background: #F0F4F9;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .login-card {
            background: #fff;
            border-radius: 16px;
            padding: 3rem 2.75rem;
            width: 100%;
            max-width: 440px;
            box-shadow: 0 4px 32px rgba(12,35,64,0.08);
        }

        .login-heading { font-size: 26px; font-weight: 500; color: #0d2137; margin-bottom: 5px; }
        .login-sub { font-size: 14px; color: #6B7280; margin-bottom: 2rem; }

        .field { margin-bottom: 1.1rem; }

        .field label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 6px;
            letter-spacing: 0.02em;
        }

        .field-wrap {
            display: flex;
            align-items: stretch;
        }

        .field-wrap input {
            flex: 1;
            height: 44px;
            border: 1px solid #D1D5DB;
            border-right: none;
            border-radius: 8px 0 0 8px;
            padding: 0 14px;
            font-size: 14px;
            font-family: 'DM Sans', sans-serif;
            color: #111827;
            background: #fff;
            outline: none;
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        .field-wrap input:focus {
            border-color: #378ADD;
            box-shadow: 0 0 0 3px rgba(55,138,221,0.10);
            z-index: 1;
        }

        .field-wrap input::placeholder { color: #B0B7C3; }

        .field-addon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            background: #F3F4F6;
            border: 1px solid #D1D5DB;
            border-left: none;
            border-radius: 0 8px 8px 0;
            color: #6B7280;
            font-size: 15px;
            flex-shrink: 0;
        }

        /* Remember me */
        .remember-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 1.25rem;
        }

        .remember-row input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: #1a3a5c;
            cursor: pointer;
            flex-shrink: 0;
        }

        .remember-row label {
            font-size: 13px;
            color: #4B5563;
            cursor: pointer;
            user-select: none;
        }

        /* Captcha */
        /*.captcha-wrap { margin-bottom: 1.5rem; }

        .captcha-label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 6px;
            letter-spacing: 0.02em;
        }

        .captcha-box {
            border: 1px solid #D1D5DB;
            border-radius: 8px;
            background: #fff;
            padding: 10px 12px;
        }*/

        /* Row 1: image + refresh link side by side */
        /*.captcha-box img {
            display: inline-block;
            height: 38px;
            width: auto;
            border-radius: 4px;
            vertical-align: middle;
            margin-right: 8px;
        }

        .captcha-box a {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            font-weight: 500;
            color: #378ADD;
            text-decoration: none;
            vertical-align: middle;
        }

        .captcha-box a:hover { text-decoration: underline; }*/

        /* Hide "Input symbols" text node and br */
        /*.captcha-box span:not([class]) { display: none !important; }
        .captcha-box br { display: none !important; }*/

        /* Top row: image + refresh */
        /*.captcha-top-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 0;
        }

        .captcha-refresh-btn {
            display: inline-flex;
            align-items: center;
            font-size: 12px;
            font-weight: 500;
            color: #378ADD;
            text-decoration: none;
            gap: 4px;
            white-space: nowrap;
        }

        .captcha-refresh-btn:hover { text-decoration: underline; }*/

        /* Divider */
        /*.captcha-divider {
            border: none;
            border-top: 1px solid #EAEAEA;
            margin: 8px 0;
        }*/

        /* Input row */
        /*.captcha-input-row {
            display: flex;
            align-items: stretch;
        }

        .captcha-box input[type="text"] {
            flex: 1;
            height: 40px;
            border: 1px solid #D1D5DB;
            border-right: none;
            border-radius: 6px 0 0 6px;
            padding: 0 12px;
            font-size: 14px;
            font-family: 'DM Sans', sans-serif;
            color: #111827;
            background: #FAFAFA;
            outline: none;
            min-width: 0;
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        .captcha-box input[type="text"]:focus {
            border-color: #378ADD;
            box-shadow: 0 0 0 3px rgba(55,138,221,0.10);
            background: #fff;
        }

        .captcha-box input[type="text"]::placeholder { color: #B0B7C3; }

        .captcha-shield {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            flex-shrink: 0;
            background: #F3F4F6;
            border: 1px solid #D1D5DB;
            border-left: none;
            border-radius: 0 6px 6px 0;
            color: #6B7280;
            font-size: 15px;
        }*/

        /* Submit */
        .btn-signin {
            width: 100%;
            height: 46px;
            background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
            color: #fff;
            border: none;
            border-radius: 9px;
            font-size: 15px;
            font-family: 'DM Sans', sans-serif;
            font-weight: 500;
            cursor: pointer;
            letter-spacing: 0.03em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: opacity 0.15s, transform 0.1s;
        }

        .btn-signin:hover { opacity: 0.88; }
        .btn-signin:active { transform: scale(0.99); }
        .btn-signin i { font-size: 14px; }

        /* Footer links */
        .login-links {
            margin-top: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .login-links a {
            font-size: 13px;
            color: #378ADD;
            text-decoration: none;
        }

        .login-links a:hover { text-decoration: underline; }

        /* Responsive */
        @media (max-width: 768px) {
            body { flex-direction: column; overflow: auto; }
            .login-side { width: 100%; padding: 2rem; min-height: auto; }
            .login-side::before, .login-side::after { display: none; }
            .login-main { padding: 1.5rem; }
        }

/* Captcha wrap */
.captcha-wrap {
    margin-bottom: 16px;
}

.captcha-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
}

/* Captcha box */
.captcha-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f9fafb;
}

/* Top row — question */
.captcha-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

#captchaQuestion {
    font-size: 20px;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 2px;
}

/* Divider */
.captcha-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 8px 0;
}

/* Input row */
.captcha-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .captcha-input-row .form-control {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 14px;
        outline: none;
        background: #fff;
    }

        .captcha-input-row .form-control:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
        }

/* Shield icon */
.captcha-shield {
    color: #6b7280;
    font-size: 16px;
    display: flex;
    align-items: center;
}