  *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --font: "DM Sans", sans-serif;
            --blue: #1a56db;
            --blue-dark: #1340b0;
            --blue-mid: #2563eb;
            --blue-light: #dbeafe;
            --blue-xlight: #eff6ff;
            --green: #059669;
            --green-light: #d1fae5;
            --green-dark: #047857;
            --slate: #0f172a;
            --slate-700: #334155;
            --slate-500: #64748b;
            --slate-400: #94a3b8;
            --slate-300: #cbd5e1;
            --slate-100: #f1f5f9;
            --white: #ffffff;
            --off: #f8fafc;
            --red: #ef4444;
            --red-light: #fee2e2;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: var(--font);
            background: var(--off);
            color: var(--slate);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
        }

        /* ── DECORATIVE BACKGROUND ── */
        .bg-pattern {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .bg-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(90px);
        }

        .bg-blob-1 {
            width: 700px;
            height: 700px;
            background: radial-gradient(circle, rgba(26, 86, 219, 0.09) 0%, transparent 70%);
            top: -200px;
            right: -150px;
            animation: driftA 18s ease-in-out infinite;
        }

        .bg-blob-2 {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(5, 150, 105, 0.07) 0%, transparent 70%);
            bottom: -100px;
            left: -100px;
            animation: driftB 22s ease-in-out infinite;
        }

        .bg-blob-3 {
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
            top: 40%;
            left: 30%;
            animation: driftA 26s ease-in-out infinite 4s;
        }

        @keyframes driftA {

            0%,
            100% {
                transform: translate(0, 0);
            }

            33% {
                transform: translate(30px, -20px);
            }

            66% {
                transform: translate(-20px, 30px);
            }
        }

        @keyframes driftB {

            0%,
            100% {
                transform: translate(0, 0);
            }

            50% {
                transform: translate(20px, 20px);
            }
        }

        /* ── MINI NAVBAR ── */
        .top-bar {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            height: 64px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(203, 213, 225, 0.5);
        }

        .top-bar-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .top-bar-mark {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 10px rgba(26, 86, 219, 0.3);
        }

        .top-bar-mark svg {
            width: 18px;
            height: 18px;
            color: white;
        }

        .top-bar-text {
            font-family: var(--font);
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--slate);
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .top-bar-text span {
            display: block;
            font-weight: 400;
            font-size: 0.7rem;
            color: var(--slate-500);
        }

        .top-bar-back {
            font-family: var(--font);
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--slate-500);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 6px 14px;
            border-radius: 8px;
            transition: all 0.2s;
            border: 1.5px solid var(--slate-300);
        }

        .top-bar-back:hover {
            background: var(--blue-xlight);
            border-color: var(--blue-light);
            color: var(--blue);
        }

        /* ── MAIN LAYOUT ── */
        .page-wrap {
            position: relative;
            z-index: 2;
            flex: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            min-height: calc(100vh - 64px);
        }

        /* ── LEFT PANEL ── */
        .left-panel {
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 60px 64px;
            background: linear-gradient(145deg, #1340b0 0%, #1a56db 50%, #2563eb 100%);
            position: relative;
            overflow: hidden;
        }

        .left-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 60% at 20% 80%, rgba(5, 150, 105, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
        }

        /* Decorative grid lines */
        .left-panel::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
        }

        .left-content {
            position: relative;
            z-index: 2;
        }

        .left-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 100px;
            margin-bottom: 28px;
            font-family: var(--font);
            letter-spacing: 0.03em;
            backdrop-filter: blur(10px);
        }

        .left-badge-dot {
            width: 6px;
            height: 6px;
            background: #34d399;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }

            50% {
                opacity: 0.5;
                transform: scale(1.3);
            }
        }

        .left-heading {
            font-family: var(--font);
            font-size: clamp(1.8rem, 2.8vw, 2.4rem);
            font-weight: 700;
            color: white;
            letter-spacing: -0.035em;
            line-height: 1.15;
            margin-bottom: 16px;
        }

        .left-heading span {
            color: #93c5fd;
        }

        .left-desc {
            font-family: var(--font);
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.7;
            margin-bottom: 40px;
            max-width: 360px;
        }

        /* Feature list */
        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 44px;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .feature-icon {
            width: 38px;
            height: 38px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            flex-shrink: 0;
            backdrop-filter: blur(8px);
        }

        .feature-text strong {
            font-family: var(--font);
            font-size: 0.875rem;
            font-weight: 600;
            color: white;
            display: block;
            letter-spacing: -0.01em;
        }

        .feature-text span {
            font-family: var(--font);
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.6);
        }

        /* Stat pills bottom */
        .left-stats {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .left-stat-pill {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 100px;
            padding: 6px 16px;
            font-family: var(--font);
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(8px);
        }

        .left-stat-pill strong {
            color: white;
            font-weight: 700;
        }

        /* Floating decorative cards */
        .deco-card {
            position: absolute;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(12px);
            border-radius: 14px;
            padding: 14px 16px;
            font-family: var(--font);
            z-index: 1;
        }

        .deco-card-1 {
            top: 36px;
            right: 30px;
            animation: floatCard 8s ease-in-out infinite;
        }

        .deco-card-2 {
            bottom: 80px;
            right: 40px;
            animation: floatCard 10s ease-in-out infinite 2s;
        }

        @keyframes floatCard {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .deco-card-emoji {
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .deco-card-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: white;
            white-space: nowrap;
        }

        .deco-card-sub {
            font-size: 0.68rem;
            color: rgba(255, 255, 255, 0.6);
            white-space: nowrap;
        }

        /* ── RIGHT PANEL ── */
        .right-panel {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 60px 64px;
            background: white;
        }

        .login-box {
            width: 100%;
            max-width: 400px;
            animation: fadeUp 0.5s ease both;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-greeting {
            font-family: var(--font);
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--slate-500);
            margin-bottom: 6px;
            letter-spacing: 0.01em;
        }

        .login-title {
            font-family: var(--font);
            font-size: 1.9rem;
            font-weight: 700;
            color: var(--slate);
            letter-spacing: -0.04em;
            line-height: 1.1;
            margin-bottom: 6px;
        }

        .login-subtitle {
            font-family: var(--font);
            font-size: 0.875rem;
            color: var(--slate-500);
            line-height: 1.6;
            margin-bottom: 32px;
        }

        /* Role tabs */
        .role-tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 28px;
            background: var(--slate-100);
            padding: 4px;
            border-radius: 12px;
        }

        .role-tab {
            font-family: var(--font);
            font-size: 0.82rem;
            font-weight: 600;
            padding: 9px;
            border-radius: 9px;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--slate-500);
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .role-tab.active {
            background: white;
            color: var(--blue);
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
        }

        .role-tab:not(.active):hover {
            color: var(--slate-700);
        }

        /* Form */
        .form-group {
            margin-bottom: 18px;
        }

        .form-label {
            font-family: var(--font);
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--slate-700);
            display: block;
            margin-bottom: 7px;
            letter-spacing: -0.01em;
        }

        .form-input-wrap {
            position: relative;
        }

        .form-input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: var(--slate-400);
            pointer-events: none;
            transition: color 0.2s;
        }

        .form-input {
            font-family: var(--font);
            width: 100%;
            padding: 12px 14px 12px 42px;
            border: 1.5px solid var(--slate-300);
            border-radius: 11px;
            font-size: 0.9rem;
            color: var(--slate);
            background: var(--off);
            transition: all 0.2s;
            outline: none;
            appearance: none;
        }

        .form-input::placeholder {
            color: var(--slate-400);
        }

        .form-input:focus {
            border-color: var(--blue);
            background: white;
            box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.08);
        }

        .form-input:focus+.focus-ring-label {
            display: none;
        }

        .form-input-wrap:focus-within .form-input-icon {
            color: var(--blue);
        }

        /* Password toggle */
        .pass-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: var(--slate-400);
            padding: 2px;
            display: flex;
            transition: color 0.2s;
        }

        .pass-toggle:hover {
            color: var(--slate-700);
        }

        /* Helpers */
        .form-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }

        .remember-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .remember-check {
            width: 17px;
            height: 17px;
            border: 1.5px solid var(--slate-300);
            border-radius: 5px;
            cursor: pointer;
            accent-color: var(--blue);
        }

        .remember-label {
            font-family: var(--font);
            font-size: 0.82rem;
            color: var(--slate-500);
            cursor: pointer;
            user-select: none;
        }

        .forgot-link {
            font-family: var(--font);
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--blue);
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .forgot-link:hover {
            opacity: 0.75;
        }

        /* Submit button */
        .btn-login {
            font-family: var(--font);
            width: 100%;
            padding: 13px;
            background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
            color: white;
            font-size: 0.92rem;
            font-weight: 700;
            border: none;
            border-radius: 11px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 16px rgba(26, 86, 219, 0.3);
            transition: all 0.25s;
            position: relative;
            overflow: hidden;
            letter-spacing: -0.01em;
        }

        .btn-login::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .btn-login:hover {
            box-shadow: 0 8px 24px rgba(26, 86, 219, 0.4);
            transform: translateY(-1px);
        }

        .btn-login:hover::before {
            opacity: 1;
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login svg {
            width: 16px;
            height: 16px;
        }

        /* Divider */
        .or-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 20px 0;
        }

        .or-line {
            flex: 1;
            height: 1px;
            background: var(--slate-300);
        }

        .or-text {
            font-family: var(--font);
            font-size: 0.75rem;
            color: var(--slate-400);
            font-weight: 500;
            white-space: nowrap;
        }

        /* Social buttons */
        .social-btns {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 24px;
        }

        .btn-social {
            font-family: var(--font);
            padding: 10px 14px;
            background: white;
            border: 1.5px solid var(--slate-300);
            border-radius: 10px;
            cursor: pointer;
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--slate-700);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .btn-social:hover {
            border-color: var(--slate-400);
            background: var(--slate-100);
        }

        .btn-social svg {
            flex-shrink: 0;
        }

        /* Register */
        .register-row {
            text-align: center;
        }

        .register-row p {
            font-family: var(--font);
            font-size: 0.82rem;
            color: var(--slate-500);
        }

        .register-row a {
            font-weight: 700;
            color: var(--blue);
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .register-row a:hover {
            opacity: 0.75;
        }

        /* Error state */
        .error-msg {
            display: none;
            align-items: center;
            gap: 8px;
            background: var(--red-light);
            border: 1px solid #fca5a5;
            border-radius: 9px;
            padding: 10px 14px;
            margin-bottom: 16px;
            font-family: var(--font);
            font-size: 0.8rem;
            color: #b91c1c;
            font-weight: 500;
            animation: shake 0.4s ease;
        }

        .error-msg.show {
            display: flex;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20%,
            60% {
                transform: translateX(-5px);
            }

            40%,
            80% {
                transform: translateX(5px);
            }
        }

        /* Loading state */
        .spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .btn-login.loading .btn-text {
            display: none;
        }

        .btn-login.loading .spinner {
            display: block;
        }

        .btn-login.loading {
            pointer-events: none;
        }

        /* ── RESPONSIVE ── */
        @media (max-width: 900px) {
            .page-wrap {
                grid-template-columns: 1fr;
            }

            .left-panel {
                display: none;
            }

            .right-panel {
                padding: 40px 24px;
            }

            .top-bar {
                padding: 0 20px;
            }
        }

        @media (max-width: 480px) {
            .right-panel {
                padding: 32px 20px;
            }

            .login-title {
                font-size: 1.6rem;
            }
        }