    /* Installment MIS — Login pages */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

    :root {
        --auth-primary: #4f46e5;
        --auth-primary-dark: #4338ca;
        --auth-primary-light: #818cf8;
        --auth-accent: #06b6d4;
        --auth-success: #10b981;
        --auth-danger: #ef4444;
        --auth-warning: #f59e0b;
        --auth-text: #0f172a;
        --auth-muted: #64748b;
        --auth-border: #e2e8f0;
        --auth-radius: 16px;
        --auth-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    }

    *, *::before, *::after { box-sizing: border-box; }

    body.auth-body {
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        color: var(--auth-text);
        background: #f1f5f9;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }

    .auth-page {
        display: flex;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-hero {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem 3rem;
        background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 35%, #4f46e5 70%, #06b6d4 100%);
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    .auth-hero::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -15%;
        width: 420px;
        height: 420px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
        pointer-events: none;
    }

    .auth-hero::after {
        content: '';
        position: absolute;
        bottom: -25%;
        left: -10%;
        width: 320px;
        height: 320px;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 50%;
        pointer-events: none;
    }

    .auth-hero-inner {
        position: relative;
        z-index: 1;
        max-width: 440px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .auth-hero-meta {
        width: 100%;
        margin-bottom: 1.75rem;
    }

    .auth-hero-meta .auth-tagline {
        margin: 0 0 1rem;
    }

    .auth-hero-meta .auth-subscription-pill {
        margin: 0;
    }

    .auth-hero-logo {
        width: 88px;
        height: 88px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        padding: 12px;
        margin-bottom: 1.75rem;
    }

    .auth-hero h1 {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        margin: 0 0 .75rem;
        line-height: 1.2;
    }

    .auth-hero .auth-tagline {
        font-size: 1.05rem;
        opacity: 0.9;
        line-height: 1.5;
    }

    .auth-hero h1 + .auth-tagline {
        margin: 0 0 2rem;
    }

    .auth-features {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .auth-features li {
        display: flex;
        align-items: flex-start;
        gap: .85rem;
        margin-bottom: 1.1rem;
        font-size: .95rem;
        opacity: 0.92;
    }

    .auth-features li i {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        font-size: .9rem;
    }

    .auth-features li strong {
        display: block;
        font-weight: 700;
        margin-bottom: .15rem;
    }

    .auth-features li span {
        font-size: .85rem;
        opacity: 0.85;
    }

    .auth-panel {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem;
        background: #f8fafc;
    }

    .auth-card {
        width: 100%;
        max-width: 420px;
        background: #fff;
        border-radius: var(--auth-radius);
        box-shadow: var(--auth-shadow);
        padding: 2rem 2rem 2.25rem;
        border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .auth-card-mobile-brand {
        display: none;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .auth-card-mobile-brand img {
        width: 72px;
        height: 72px;
        object-fit: contain;
        border-radius: 14px;
        background: #f1f5f9;
        padding: 8px;
        margin-bottom: .75rem;
    }

    .auth-card-mobile-brand h2 {
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0 0 .25rem;
    }

    .auth-card-mobile-brand p {
        margin: 0;
        color: var(--auth-muted);
        font-size: .9rem;
    }

    .auth-card-mobile-brand .auth-subscription-pill {
        margin-top: .75rem;
    }

    .auth-card-header {
        margin-bottom: 1.75rem;
    }

    .auth-card-header h2 {
        font-size: 1.5rem;
        font-weight: 800;
        margin: 0 0 .35rem;
        letter-spacing: -0.02em;
    }

    .auth-card-header p {
        margin: 0;
        color: var(--auth-muted);
        font-size: .9rem;
    }

    .auth-alert {
        padding: .75rem 1rem;
        border-radius: 12px;
        font-size: .875rem;
        margin-bottom: 1.25rem;
        display: flex;
        align-items: flex-start;
        gap: .5rem;
    }

    .auth-alert-danger {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .auth-alert-warning {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fde68a;
    }

    .auth-alert-info {
        background: #eff6ff;
        color: #1e40af;
        border: 1px solid #bfdbfe;
    }

    .auth-alert code {
        font-size: .8rem;
        background: rgba(255, 255, 255, 0.65);
        padding: 1px 5px;
        border-radius: 4px;
    }

    .portal-section {
        margin-bottom: 1.25rem;
    }

    .portal-section-label {
        margin: 0 0 .65rem;
        font-size: .8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--auth-muted);
    }

    .portal-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .portal-list li + li {
        margin-top: .5rem;
    }

    .portal-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .85rem 1rem;
        border: 1px solid var(--auth-border);
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
        background: #fff;
        transition: border-color .2s, box-shadow .2s, transform .15s;
    }

    .portal-link:hover {
        border-color: var(--auth-primary-light);
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.1);
        transform: translateY(-1px);
    }

    .portal-link-main {
        display: flex;
        flex-direction: column;
        gap: .15rem;
        min-width: 0;
    }

    .portal-link-main strong {
        font-size: .95rem;
        color: var(--auth-text);
    }

    .portal-link-main small {
        font-size: .78rem;
        color: var(--auth-muted);
        word-break: break-all;
    }

    .portal-link i {
        color: var(--auth-primary);
        flex-shrink: 0;
    }

    .portal-goto-form {
        margin-bottom: 1rem;
    }

    .auth-divider {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin: 1.35rem 0 1rem;
        color: var(--auth-muted);
        font-size: .78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--auth-border);
    }

    .auth-btn-secondary {
        background: #fff;
        color: var(--auth-primary);
        border: 2px solid var(--auth-border);
        box-shadow: none;
        text-decoration: none;
    }

    .auth-btn-secondary:hover {
        background: #f8fafc;
        border-color: var(--auth-primary-light);
        color: var(--auth-primary-dark);
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
        transform: translateY(-1px);
    }

    .gateway-doors {
        display: flex;
        flex-direction: column;
        gap: .85rem;
        margin-bottom: .5rem;
    }

    .gateway-door {
        display: flex;
        align-items: center;
        gap: .9rem;
        padding: 1.1rem 1.15rem;
        border: 1px solid var(--auth-border);
        border-radius: 14px;
        text-decoration: none;
        color: inherit;
        background: #fff;
        transition: border-color .2s, box-shadow .2s, transform .15s;
    }

    .gateway-door:hover {
        border-color: var(--auth-primary-light);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.12);
        transform: translateY(-2px);
    }

    .gateway-door-platform:hover {
        border-color: #334155;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    }

    .gateway-door-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(79, 70, 229, 0.1);
        color: var(--auth-primary);
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .gateway-door-icon-platform {
        background: rgba(15, 23, 42, 0.08);
        color: #0f172a;
    }

    .gateway-door-body {
        display: flex;
        flex-direction: column;
        gap: .2rem;
        min-width: 0;
        flex: 1;
    }

    .gateway-door-body strong {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--auth-text);
    }

    .gateway-door-body span {
        font-size: .84rem;
        color: var(--auth-muted);
        line-height: 1.4;
    }

    .gateway-door-arrow {
        color: var(--auth-muted);
        flex-shrink: 0;
    }

    .gateway-door:hover .gateway-door-arrow {
        color: var(--auth-primary);
    }

    .role-card {
        border: 1px solid var(--auth-border);
        border-radius: 14px;
        padding: 1.1rem 1.1rem 1.15rem;
        margin-bottom: 1rem;
        background: #fafbfc;
    }

    .role-card-platform {
        background: #fff;
    }

    .role-card-head {
        display: flex;
        align-items: flex-start;
        gap: .85rem;
        margin-bottom: 1rem;
    }

    .role-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(79, 70, 229, 0.1);
        color: var(--auth-primary);
        flex-shrink: 0;
    }

    .role-card-icon-platform {
        background: rgba(15, 23, 42, 0.08);
        color: #0f172a;
    }

    .role-card-head h3 {
        margin: 0 0 .2rem;
        font-size: 1rem;
        font-weight: 800;
        color: var(--auth-text);
    }

    .role-card-head p {
        margin: 0;
        font-size: .84rem;
        color: var(--auth-muted);
        line-height: 1.45;
    }

    .portal-section {
        margin-bottom: 1.25rem;
    }

    .portal-section-label {
        margin: 0 0 .65rem;
        font-size: .8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--auth-muted);
    }

    .portal-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .portal-list li + li {
        margin-top: .5rem;
    }

    .portal-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .85rem 1rem;
        border: 1px solid var(--auth-border);
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
        background: #fff;
        transition: border-color .2s, box-shadow .2s, transform .15s;
    }

    .portal-link:hover {
        border-color: var(--auth-primary-light);
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.1);
        transform: translateY(-1px);
    }

    .portal-link-main {
        display: flex;
        flex-direction: column;
        gap: .15rem;
        min-width: 0;
    }

    .portal-link-main strong {
        font-size: .95rem;
        color: var(--auth-text);
    }

    .portal-link-main small {
        font-size: .78rem;
        color: var(--auth-muted);
        word-break: break-all;
    }

    .portal-link i {
        color: var(--auth-primary);
        flex-shrink: 0;
    }

    .portal-goto-form {
        margin-bottom: 1rem;
    }

    .auth-alert-info {
        background: #eff6ff;
        color: #1e40af;
        border: 1px solid #bfdbfe;
    }

    .auth-footer-note a {
        color: var(--auth-primary);
        text-decoration: none;
        font-weight: 600;
    }

    .auth-footer-note a:hover {
        text-decoration: underline;
    }

    .auth-field {
        margin-bottom: 1.15rem;
    }

    .auth-field label {
        display: block;
        font-size: .85rem;
        font-weight: 600;
        color: #334155;
        margin-bottom: .4rem;
    }

    .auth-input-wrap {
        position: relative;
    }

    .auth-input-wrap i.field-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--auth-muted);
        font-size: .9rem;
        pointer-events: none;
    }

    .auth-input {
        width: 100%;
        height: 48px;
        padding: 0 1rem 0 2.75rem;
        border: 1px solid var(--auth-border);
        border-radius: 12px;
        font-size: .95rem;
        font-family: inherit;
        color: var(--auth-text);
        background: #fff;
        transition: border-color .2s, box-shadow .2s;
    }

    .auth-input:focus {
        outline: none;
        border-color: var(--auth-primary-light);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    }

    .auth-input::placeholder {
        color: #94a3b8;
    }

    .auth-input-wrap.has-toggle .auth-input {
        padding-right: 2.85rem;
    }

    .auth-password-toggle {
        position: absolute;
        right: .45rem;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--auth-muted);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: color .2s, background .2s;
    }

    .auth-password-toggle:hover {
        color: var(--auth-primary);
        background: rgba(79, 70, 229, 0.08);
    }

    .auth-password-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    }

    .auth-remember {
        display: flex;
        align-items: center;
        gap: .5rem;
        margin-bottom: 1.35rem;
    }

    .auth-remember input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--auth-primary);
        cursor: pointer;
    }

    .auth-remember label {
        font-size: .875rem;
        font-weight: 600;
        color: #334155;
        cursor: pointer;
        margin: 0;
    }

    .auth-btn {
        width: 100%;
        height: 50px;
        border: 0;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        transition: transform .15s, box-shadow .2s, background .2s;
    }

    .auth-btn-primary {
        background: linear-gradient(135deg, var(--auth-primary) 0%, #6366f1 100%);
        color: #fff;
        box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    }

    .auth-btn-primary:hover {
        background: linear-gradient(135deg, var(--auth-primary-dark) 0%, var(--auth-primary) 100%);
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
        transform: translateY(-1px);
    }

    .auth-subscription-pill {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        margin-top: .5rem;
        padding: .35rem .85rem;
        border-radius: 999px;
        font-size: .75rem;
        font-weight: 700;
    }

    .auth-subscription-pill.active {
        background: #dcfce7;
        color: #166534;
    }

    .auth-subscription-pill.expired {
        background: #fee2e2;
        color: #991b1b;
    }

    .auth-hero .auth-subscription-pill.active {
        background: rgba(16, 185, 129, 0.18);
        color: #bbf7d0;
        border: 1px solid rgba(16, 185, 129, 0.35);
    }

    .auth-hero .auth-subscription-pill.expired {
        background: rgba(239, 68, 68, 0.18);
        color: #fecaca;
        border: 1px solid rgba(239, 68, 68, 0.35);
    }

    .auth-footer-note {
        text-align: center;
        margin-top: 1.5rem;
        font-size: .8rem;
        color: var(--auth-muted);
    }

    @media (max-width: 991.98px) {
        .auth-page { flex-direction: column; }
        .auth-hero { padding: 2rem 1.5rem; min-height: auto; }
        .auth-hero h1 { font-size: 1.5rem; }
        .auth-hero .auth-tagline { font-size: .95rem; }
        .auth-hero-meta { margin-bottom: 1.25rem; }
        .auth-hero-meta .auth-tagline { margin-bottom: .75rem; }
        .auth-hero-meta .auth-subscription-pill { display: none; }
        .auth-features { display: none; }
        .auth-hero-logo { width: 64px; height: 64px; margin-bottom: 1rem; }
        .auth-panel { padding: 1.25rem 1rem 2rem; flex: 1; }
        .auth-card { padding: 1.5rem 1.35rem 1.75rem; max-width: 100%; }
        .auth-card-mobile-brand { display: block; }
        .auth-card-header h2 { font-size: 1.3rem; }
    }

    @media (max-width: 575.98px) {
        .auth-hero { padding: 1.5rem 1.25rem; text-align: center; }
        .auth-hero-inner { align-items: center; text-align: center; }
        .auth-hero-meta { display: flex; flex-direction: column; align-items: center; }
        .auth-hero h1 { font-size: 1.35rem; }
        .auth-panel { padding: 1rem .75rem 1.5rem; }
        .auth-card { padding: 1.35rem 1.15rem 1.5rem; border-radius: 14px; }
        .auth-input { height: 46px; font-size: 16px; }
        .auth-btn { height: 48px; }
    }

    @media (min-width: 992px) {
        .auth-hero { max-width: 52%; }
        .auth-panel { max-width: 48%; }
    }
