:root {
            --navy-dark:   #0d1b4b;
            --navy:        #1a2e7a;
            --navy-mid:    #1e3a8a;
            --blue:        #2563eb;
            --blue-light:  #3b82f6;
            --accent:      #f59e0b;
            --white:       #ffffff;
            --gray-50:     #f8fafc;
            --gray-100:    #f1f5f9;
            --gray-200:    #e2e8f0;
            --gray-400:    #94a3b8;
            --gray-600:    #475569;
            --gray-800:    #1e293b;
            --danger:      #ef4444;
            --danger-bg:   #fef2f2;
            --success:     #10b981;
            --success-bg:  #ecfdf5;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            min-height: 100vh;
            display: flex;
            background: var(--gray-50);
        }

        /* ===== LEFT PANEL ===== */
        .left-panel {
            width: 52%;
            background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1e40af 100%);
            padding: 48px 56px;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .left-panel::before {
            content: '';
            position: absolute;
            top: -120px; right: -120px;
            width: 420px; height: 420px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.05);
        }

        .left-panel::after {
            content: '';
            position: absolute;
            bottom: 60px; right: -80px;
            width: 300px; height: 300px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
        }

        /* Logo */
        .brand-logo {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 56px;
            position: relative;
            z-index: 2;
        }

        .logo-icon {
            width: 48px; height: 48px;
            background: rgba(255,255,255,0.15);
            border: 1.5px solid rgba(255,255,255,0.3);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px; color: white;
        }

        .logo-text-wrap { display: flex; flex-direction: column; }
        .logo-name {
            font-size: 22px; font-weight: 800;
            color: white; letter-spacing: -0.5px;
            line-height: 1.1;
        }
        .logo-tagline {
            font-size: 10px; letter-spacing: 2px;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
            font-weight: 500;
        }

        /* Badge */
        .security-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 100px;
            padding: 6px 14px;
            font-size: 12px;
            color: rgba(255,255,255,0.85);
            font-weight: 500;
            margin-bottom: 24px;
            width: fit-content;
            position: relative; z-index: 2;
        }

        .security-badge i { font-size: 12px; color: var(--accent); }

        /* Heading */
        .brand-heading {
            font-size: 40px; font-weight: 800;
            color: white; line-height: 1.15;
            letter-spacing: -1px;
            margin-bottom: 16px;
            position: relative; z-index: 2;
        }

        .brand-desc {
            font-size: 14px;
            color: rgba(255,255,255,0.65);
            line-height: 1.7;
            max-width: 380px;
            margin-bottom: 40px;
            position: relative; z-index: 2;
        }

        /* Feature list */
        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
            position: relative; z-index: 2;
            margin-bottom: auto;
        }

        .feature-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
        }

        .feat-icon-wrap {
            width: 38px; height: 38px;
            flex-shrink: 0;
            border-radius: 10px;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.15);
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; color: white;
        }

        .feat-text-title {
            font-size: 14px; font-weight: 600;
            color: white; margin-bottom: 2px;
        }
        .feat-text-sub {
            font-size: 12px;
            color: rgba(255,255,255,0.55);
            line-height: 1.5;
        }

        /* Security box */
        .security-box {
            margin-top: 36px;
            background: rgba(0,0,0,0.2);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            padding: 20px 24px;
            position: relative; z-index: 2;
        }

        .security-box-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .security-box-icon {
            width: 44px; height: 44px;
            background: rgba(37,99,235,0.3);
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px; color: var(--blue-light);
        }

        .security-box-title {
            font-size: 14px; font-weight: 700; color: white;
        }

        .security-box-desc {
            font-size: 12px;
            color: rgba(255,255,255,0.55);
            line-height: 1.6;
            margin-bottom: 14px;
        }

        .security-tags {
            display: flex; gap: 8px; flex-wrap: wrap;
        }

        .security-tag {
            display: flex; align-items: center; gap: 5px;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            padding: 5px 10px;
            font-size: 11px; color: rgba(255,255,255,0.6);
        }

        .security-tag i { font-size: 11px; }

        /* ===== RIGHT PANEL ===== */
        .right-panel {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 48px;
            background: white;
        }

        .login-card {
            width: 100%;
            max-width: 440px;
        }

        /* Avatar */
        .avatar-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 24px;
        }

        .avatar-circle {
            width: 64px; height: 64px;
            border-radius: 50%;
            background: var(--gray-100);
            border: 2px solid var(--gray-200);
            display: flex; align-items: center; justify-content: center;
            font-size: 28px; color: var(--blue);
        }

        .card-title {
            font-size: 28px; font-weight: 800;
            color: var(--gray-800);
            text-align: center;
            letter-spacing: -0.5px;
            margin-bottom: 6px;
        }

        .card-subtitle {
            font-size: 14px;
            color: var(--gray-400);
            text-align: center;
            line-height: 1.5;
            margin-bottom: 32px;
        }

        /* Flash message */
        .flash-error {
            background: var(--danger-bg);
            border: 1px solid #fecaca;
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13.5px;
            color: var(--danger);
            font-weight: 500;
        }

        .flash-success {
            background: var(--success-bg);
            border: 1px solid #a7f3d0;
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13.5px;
            color: var(--success);
            font-weight: 500;
        }

        /* Form */
        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-600);
            margin-bottom: 8px;
        }

        .input-wrap {
            position: relative;
        }

        .input-wrap i.icon-left {
            position: absolute;
            left: 14px; top: 50%;
            transform: translateY(-50%);
            font-size: 15px;
            color: var(--gray-400);
            pointer-events: none;
            transition: color 0.2s;
        }

        .input-wrap input {
            width: 100%;
            padding: 13px 14px 13px 42px;
            border: 1.5px solid var(--gray-200);
            border-radius: 10px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 14px;
            color: var(--gray-800);
            background: var(--gray-50);
            outline: none;
            transition: all 0.2s;
        }

        .input-wrap input::placeholder {
            color: var(--gray-400);
            font-size: 13.5px;
        }

        .input-wrap input:focus {
            border-color: var(--blue);
            background: white;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
        }

        .input-wrap input:focus + i.icon-left,
        .input-wrap input:focus ~ i.icon-left {
            color: var(--blue);
        }

        .input-wrap input.is-error {
            border-color: var(--danger);
            background: var(--danger-bg);
            box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
        }

        .btn-toggle-pass {
            position: absolute;
            right: 12px; top: 50%;
            transform: translateY(-50%);
            background: none; border: none;
            color: var(--gray-400);
            cursor: pointer;
            font-size: 16px;
            padding: 4px;
            transition: color 0.2s;
        }

        .btn-toggle-pass:hover { color: var(--blue); }

        .field-error {
            font-size: 12px;
            color: var(--danger);
            margin-top: 6px;
            display: none;
            align-items: center;
            gap: 4px;
        }

        .field-error.show { display: flex; }

        /* Options row */
        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
        }

        .check-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
        }

        .check-wrap input[type="checkbox"] { display: none; }

        .custom-check {
            width: 18px; height: 18px;
            border: 1.5px solid var(--gray-200);
            border-radius: 5px;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s;
            background: white;
            flex-shrink: 0;
        }

        .custom-check i { font-size: 10px; color: white; opacity: 0; transform: scale(0); transition: all 0.2s; }
        .check-wrap input:checked + .custom-check { background: var(--blue); border-color: var(--blue); }
        .check-wrap input:checked + .custom-check i { opacity: 1; transform: scale(1); }
        .check-wrap span { font-size: 13px; color: var(--gray-600); }

        .forgot-link {
            font-size: 13px;
            color: var(--blue);
            font-weight: 600;
            text-decoration: none;
        }

        .forgot-link:hover { text-decoration: underline; }

        /* Submit button */
        .btn-submit {
            width: 100%;
            padding: 14px;
            background: var(--blue);
            color: white;
            border: none;
            border-radius: 10px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.2s;
            position: relative;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .btn-submit:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(37,99,235,0.35);
        }

        .btn-submit:active { transform: translateY(0); }

        .btn-submit.loading { pointer-events: none; opacity: 0.8; }

        .btn-spinner {
            display: none;
            width: 18px; height: 18px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

        .btn-submit.loading .btn-spinner { display: block; }
        .btn-submit.loading .btn-arrow { display: none; }

        @keyframes spin { to { transform: rotate(360deg); } }

        /* Demo box */
        .demo-box {
            background: var(--gray-50);
            border: 1.5px solid var(--gray-200);
            border-radius: 12px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .demo-avatar {
            width: 36px; height: 36px;
            border-radius: 50%;
            background: var(--gray-100);
            border: 1.5px solid var(--gray-200);
            display: flex; align-items: center; justify-content: center;
            font-size: 16px; color: var(--blue);
            flex-shrink: 0;
        }

        .demo-label {
            font-size: 12px; font-weight: 700;
            color: var(--blue);
            margin-bottom: 2px;
        }

        .demo-cred {
            font-size: 13px;
            color: var(--gray-600);
        }

        .demo-cred strong { font-weight: 700; color: var(--gray-800); }

        /* Sign up */
        .signup-text {
            text-align: center;
            font-size: 13.5px;
            color: var(--gray-400);
        }

        .signup-text a {
            color: var(--blue);
            font-weight: 600;
            text-decoration: none;
        }

        .signup-text a:hover { text-decoration: underline; }

        /* Dot pattern */
        .dot-pattern {
            position: absolute;
            top: 20px; right: 20px;
            width: 80px; height: 80px;
            background-image: radial-gradient(circle, rgba(37,99,235,0.15) 1px, transparent 1px);
            background-size: 10px 10px;
            display: none;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 860px) {
            .left-panel { display: none; }
            .right-panel {
                padding: 32px 24px;
                background: var(--gray-50);
            }
            .login-card {
                background: white;
                border-radius: 20px;
                padding: 36px 28px;
                border: 1px solid var(--gray-200);
                box-shadow: 0 4px 24px rgba(0,0,0,0.06);
            }
        }

        @media (max-width: 480px) {
            .right-panel { padding: 20px 16px; }
            .login-card { padding: 28px 20px; }
            .card-title { font-size: 24px; }
        }