:root {
            --green-dark:  #06402B;
            --green-mid:   #008060;
            --green-light: #00b87a;
            --green-glow:  rgba(0,128,96,0.15);
            --card-bg:     #ffffff;
            --text-main:   #1a2e22;
            --text-muted:  #5a7566;
            --border:      #d4e6da;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background: #f0f7f4;
            min-height: 100vh;
        }

        /* ── Layout ── */
        .auth-main { display: flex; min-height: 100vh; }

        .auth-form-panel {
            width: 380px;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 32px 28px;
            background: var(--card-bg);
            box-shadow: 4px 0 32px rgba(6,64,43,0.08);
            position: relative;
            z-index: 2;
            overflow-y: auto;
        }

        .auth-side {
            flex: 1;
            background: url('assets/images/login_backdrop.png') center/cover no-repeat;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 32px;
            overflow: hidden;
        }

        .auth-side::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(6,64,43,0.82) 0%, rgba(0,128,96,0.70) 100%);
        }

        .auth-side > * { position: relative; z-index: 1; }

        /* ── Logo ── */
        .brand-logo {
            width: 100%;
            max-height: 64px;
            object-fit: contain;
            margin-bottom: 20px;
        }

        /* ══════════════════════════════════════
           STEP 1 — Role Selector
        ══════════════════════════════════════ */
        .step-heading {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 4px;
            text-align: center;
        }

        .step-sub {
            font-size: 11.5px;
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 18px;
        }

        .role-grid {
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .role-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 13px;
            border: 2px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
            background: #fff;
            user-select: none;
        }

        .role-card:hover {
            border-color: var(--green-mid);
            box-shadow: 0 4px 18px var(--green-glow);
            transform: translateX(5px);
        }

        .role-card.selected {
            border-color: var(--green-mid);
            background: linear-gradient(135deg, #f0fdf8, #e8f9f1);
            box-shadow: 0 4px 20px var(--green-glow);
        }

        .role-icon {
            width: 38px; height: 38px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            flex-shrink: 0;
            transition: transform 0.2s;
        }

        .role-card:hover .role-icon,
        .role-card.selected .role-icon { transform: scale(1.1) rotate(-4deg); }

        .role-icon.ic-evaluator    { background: #e8f5e9; color: #2e7d32; }
        .role-icon.ic-extension    { background: #e3f2fd; color: #1565c0; }
        .role-icon.ic-extensionist { background: #fff3e0; color: #e65100; }

        .role-info { flex: 1; }

        .role-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 2px;
        }

        .role-desc {
            font-size: 10.5px;
            color: var(--text-muted);
            line-height: 1.35;
        }

        .role-check {
            width: 18px; height: 18px;
            border-radius: 50%;
            border: 2px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            font-size: 9px;
            color: transparent;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
        }

        .role-card.selected .role-check {
            background: var(--green-mid);
            border-color: var(--green-mid);
            color: #fff;
        }

        .btn-proceed {
            width: 100%;
            margin-top: 16px;
            padding: 11px;
            border: none;
            border-radius: 9px;
            background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13.5px;
            font-weight: 600;
            cursor: not-allowed;
            transition: opacity 0.2s, transform 0.15s;
            opacity: 0.4;
        }

        .btn-proceed.ready {
            opacity: 1;
            cursor: pointer;
        }

        .btn-proceed.ready:hover { transform: translateY(-2px); }

        /* ══════════════════════════════════════
           STEP 2 — Login Form
        ══════════════════════════════════════ */
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 600;
            color: var(--green-mid);
            cursor: pointer;
            margin-bottom: 14px;
            background: none;
            border: none;
            padding: 4px 0;
            font-family: inherit;
            transition: color 0.15s, gap 0.15s;
        }

        .back-btn:hover { color: var(--green-dark); gap: 10px; }

        .selected-role-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 5px 12px;
            border-radius: 18px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 16px;
            border: 1.5px solid var(--green-mid);
            color: var(--green-dark);
            background: #f0fdf8;
        }

        .form-label-custom {
            display: block;
            font-size: 10.5px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 5px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .input-custom {
            width: 100%;
            padding: 10px 12px;
            border: 1.5px solid var(--border);
            border-radius: 9px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
            color: var(--text-main);
            background: #fff;
            transition: border-color 0.2s, box-shadow 0.2s;
            outline: none;
        }

        .input-custom:focus {
            border-color: var(--green-mid);
            box-shadow: 0 0 0 4px var(--green-glow);
        }

        .input-wrapper { position: relative; margin-bottom: 14px; }

        .toggle-pass {
            position: absolute;
            right: 11px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 13px;
            padding: 0;
            transition: color 0.15s;
        }

        .toggle-pass:hover { color: var(--green-mid); }

        .btn-login {
            width: 100%;
            padding: 11px;
            border: none;
            border-radius: 9px;
            background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s, transform 0.15s;
            margin-top: 4px;
        }

        .btn-login:hover:not(:disabled) { transform: translateY(-2px); }
        .btn-login:disabled { opacity: 0.55; cursor: not-allowed; }

        /* ── Spinner overlay ── */
        #login-spinner {
            display: none;
            position: fixed; inset: 0;
            background: rgba(255,255,255,0.65);
            z-index: 9998;
            align-items: center; justify-content: center;
        }
        #login-spinner.active { display: flex; }

        /* ── Toast ── */
        #toast-container {
            position: fixed;
            bottom: 24px; right: 24px;
            z-index: 9999;
            display: flex;
            flex-direction: column-reverse;
            gap: 8px;
            pointer-events: none;
        }

        .toast-item {
            min-width: 260px; max-width: 340px;
            background: #fff;
            border-radius: 9px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.12);
            overflow: hidden;
            pointer-events: auto;
            opacity: 0;
            transform: translateX(60px);
            transition: opacity 0.3s, transform 0.3s;
        }

        .toast-item.show { opacity: 1; transform: translateX(0); }

        .toast-item .t-header {
            display: flex; align-items: center;
            justify-content: space-between;
            padding: 9px 12px 7px;
            border-bottom: 1px solid #f0f0f0;
        }

        .toast-item .t-title {
            font-weight: 700; font-size: 12px;
            display: flex; align-items: center; gap: 6px;
        }

        .toast-item .t-dot { width: 9px; height: 9px; border-radius: 50%; }
        .toast-item .t-body { padding: 7px 12px 10px; font-size: 12px; color: #666; }
        .toast-item .t-close { background: none; border: none; font-size: 15px; cursor: pointer; color: #aaa; }

        .toast-item.success .t-title { color: #2e7d32; }
        .toast-item.success .t-dot   { background: #4CAF50; }
        .toast-item.error   .t-title { color: #c62828; }
        .toast-item.error   .t-dot   { background: #f44336; }
        .toast-item.warning .t-title { color: #e65100; }
        .toast-item.warning .t-dot   { background: #ff9800; }

        /* ── Side ── */
        .side-logo { width: 20%; margin-bottom: 20px; }

        .carousel-item h2 {
            font-size: clamp(15px, 1.9vw, 21px);
            font-weight: 700; color: #fff; margin-bottom: 8px;
        }

        .carousel-item p { font-size: 12.5px; color: rgba(255,255,255,0.8); }

        .side-footer {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            background: white;
            padding: 11px;
            text-align: center;
            font-size: 9px;
            color: gray;
        
        }

        /* ── Step animation ── */
        .step-anim { animation: stepIn 0.28s ease; }

        @keyframes stepIn {
            from { opacity: 0; transform: translateX(20px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        .footers {
            position: fixed; bottom: 0; left: 0; width: 100%;
            background-color: #343a40; color: white;
            text-align: center; padding: 12px 0;
        }

        @media (max-width: 768px) {
            .auth-side { display: none; }
            .auth-form-panel { width: 100%; padding: 24px 16px; }
        }