/* =====================================================
           SECTION 1: SHARED  (login page jaisa hi look)
           ===================================================== */
        :root {
            --p-950: #170a38;
            --p-900: #2a0f63;
            --p-800: #4c1d95;
            --p-700: #6d28d9;
            --p-500: #8b5cf6;
            --p-300: #c4b5fd;
            --gold: #f1c40f;
            --gold-soft: #ffe37a;
            --gold-deep: #c99a06;
            --text: #1e1b3a;
            --muted: #6b6788;
            --line: #e6e1f5;
            --stage-text: #f3f0ff;
            --stage-dim: #b9aedf;
        }
        * { box-sizing: border-box; }
        html, body { margin: 0; min-height: 100%; }
        body {
            font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
            color: var(--text);
            -webkit-font-smoothing: antialiased;
            -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
            background:
                radial-gradient(60% 55% at 0% 0%, rgba(192,38,211,.38) 0%, transparent 62%),
                radial-gradient(65% 60% at 100% 100%, rgba(99,102,241,.45) 0%, transparent 64%),
                radial-gradient(40% 40% at 70% 20%, rgba(241,196,15,.10) 0%, transparent 70%),
                linear-gradient(135deg, var(--p-950) 0%, var(--p-900) 45%, #5b21b6 100%);
            background-attachment: fixed;
        }
        body::before {
            content: ""; position: fixed; inset: 0; pointer-events: none;
            background-image:
                linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
            background-size: 44px 44px;
            -webkit-mask-image: radial-gradient(85% 80% at 50% 40%, #000 20%, transparent 80%);
            mask-image: radial-gradient(85% 80% at 50% 40%, #000 20%, transparent 80%);
        }
        .page {
            position: relative; z-index: 1;
            min-height: 100vh; min-height: 100dvh;
            display: grid; grid-template-rows: auto 1fr auto;
        }

        /* Header strip */
        .topbar {
            padding: 8px clamp(16px, 4vw, 56px);
            background: linear-gradient(180deg, rgba(10,4,30,.62) 0%, rgba(10,4,30,.30) 100%);
            border-bottom: 1px solid rgba(255,255,255,.12);
            -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
            box-shadow: 0 8px 26px rgba(10,4,30,.3);
        }
        .brand { display: flex; align-items: center; gap: 14px; }
        .brand-mark {
            flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            font-size: 30px; color: #1b1400;
            background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
            border: 2px solid var(--gold);
            box-shadow: 0 0 0 3px rgba(241,196,15,.18), 0 6px 14px rgba(0,0,0,.3);
        }
        .brand-mark.has-logo { background: #fff; }
        .brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .brand-name { font-size: 20px; font-weight: 800; letter-spacing: .2px; line-height: 1.2; color: #fff; }
        .brand-sub { font-size: 13px; font-weight: 500; color: var(--stage-dim); margin-top: 1px; }

        /* Fields */
        .field { margin-bottom: 16px; }
        .field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: #2b2750; }
        .field label .req { color: #e11d48; }
        .control { position: relative; }
        .control .prefix {
            position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
            font-size: 14.5px; color: #a29ec0; transition: color .2s ease; pointer-events: none;
        }
        .control input, .control textarea {
            width: 100%; padding: 0 48px 0 46px;
            font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text);
            background: #faf8ff; border: 1.5px solid var(--line); border-radius: 14px; outline: none;
            -webkit-user-select: text; user-select: text;
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        }
        .control input { height: 50px; }
        .control input::placeholder, .control textarea::placeholder { color: #b0abc9; font-weight: 400; }
        .control input:hover, .control textarea:hover { border-color: #d3cbec; }
        .control input:focus, .control textarea:focus { background: #fff; border-color: var(--p-700); box-shadow: 0 0 0 4px rgba(139,92,246,.22); }
        .control:focus-within .prefix { color: var(--p-700); }
        .eye {
            position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
            display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px;
            background: transparent; color: #a29ec0; cursor: pointer; transition: background .2s ease, color .2s ease;
        }
        .eye:hover { background: #f1edfb; color: var(--p-800); }
        .eye:focus-visible { outline: 2px solid var(--p-800); outline-offset: 1px; }

        /* Gold button */
        .btn-premium {
            position: relative; overflow: hidden; width: 100%; height: 54px; margin-top: 6px;
            display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px;
            font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .2px; color: #1b1400;
            background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-deep) 100%);
            box-shadow: 0 14px 28px rgba(201,154,6,.36), 0 1px 0 rgba(255,255,255,.6) inset;
            cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        }
        .btn-premium::after {
            content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
            background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
            transform: skewX(-20deg); transition: left .6s ease;
        }
        .btn-premium:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(201,154,6,.46), 0 1px 0 rgba(255,255,255,.6) inset; }
        .btn-premium:hover::after { left: 130%; }
        .btn-premium:active { transform: translateY(0); }
        .btn-premium:focus-visible { outline: 3px solid var(--p-800); outline-offset: 3px; }
        .btn-premium.loading { pointer-events: none; filter: saturate(.85); }
        .btn-premium .spinner {
            display: none; width: 18px; height: 18px; border-radius: 50%;
            border: 2.5px solid rgba(27,20,0,.25); border-top-color: #1b1400; animation: spin .7s linear infinite;
        }
        .btn-premium.loading .spinner { display: inline-block; }
        .btn-premium.loading .btn-ico { display: none; }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* Page footer */
        .site-footer {
            padding: 12px 20px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--stage-dim);
            border-top: 1px solid rgba(255,255,255,.12); background: rgba(10,4,30,.28);
            -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
        }

        /* SweetAlert to match the page */
        .swal2-popup { font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, sans-serif !important; border-radius: 22px !important; }
        .swal2-title { font-weight: 800 !important; }
        .swal2-confirm { border-radius: 12px !important; font-weight: 700 !important; padding: 11px 26px !important; }

        /* =====================================================
           SECTION 2: REGISTER ONLY
           ===================================================== */
        .reg-main { display: flex; align-items: flex-start; justify-content: center; padding: clamp(20px, 4vh, 44px) 20px; }
        .reg-card {
            width: 100%; max-width: 760px;
            padding: clamp(22px, 3.6vh, 38px) clamp(20px, 3.6vw, 44px) 22px;
            border-radius: 28px; border: 1.5px solid transparent;
            background:
                radial-gradient(120% 40% at 50% 0%, rgba(139,92,246,.14) 0%, transparent 65%) padding-box,
                linear-gradient(#fff, #fff) padding-box,
                linear-gradient(150deg, rgba(255,227,122,.95), rgba(139,92,246,.35) 42%, rgba(241,196,15,.85)) border-box;
            box-shadow: 0 40px 90px rgba(10,4,30,.55), 0 10px 26px rgba(10,4,30,.25), 0 0 0 8px rgba(255,255,255,.06);
        }
        .reg-icon {
            width: 76px; height: 76px; margin: 0 auto 12px; padding: 4px; border-radius: 50%;
            background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
            box-shadow: 0 0 0 6px rgba(139,92,246,.13), 0 16px 34px rgba(76,29,149,.38);
        }
        .reg-icon .in {
            width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff;
            display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--p-800);
        }
        .reg-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .reg-title { margin: 0 0 5px; text-align: center; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; color: var(--text); }
        .reg-sub { margin: 0 auto 22px; max-width: 32em; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

        .sec-label {
            display: flex; align-items: center; gap: 12px; margin: 4px 0 16px;
            font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--p-800);
        }
        .sec-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }

        .control textarea { min-height: 78px; padding-top: 14px; padding-bottom: 12px; resize: vertical; line-height: 1.5; }
        .control.is-area .prefix { top: 18px; transform: none; }

        .match-note { min-height: 18px; margin-top: 6px; font-size: 12px; font-weight: 600; }
        .match-note.ok  { color: #16a34a; }
        .match-note.bad { color: #e11d48; }
        .match-note i { margin-right: 5px; }

        .reg-login-line { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
        .reg-login-line a { font-weight: 800; color: var(--p-800); text-decoration: none; }
        .reg-login-line a:hover { color: var(--p-700); text-decoration: underline; }

        .security-footer {
            margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
            display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; color: #16a34a;
        }

        @media (max-width: 640px) {
            .grid-2 { grid-template-columns: 1fr; }
            .brand-name { font-size: 16px; }
            .brand-sub { font-size: 11.5px; }
            .reg-card { border-radius: 24px; }
        }
        @media (prefers-reduced-motion: reduce) {
            * { transition: none !important; animation-duration: .01ms !important; }
        }