: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 { height: 100%; margin: 0; }
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;
    overflow: hidden;                         /* one screen, no page scroll */
    /* ONE background for the whole page (left + right) */
    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 {                                /* fine grid across the whole page */
    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%);
}

/* ================= Layout ================= */
.page {
    position: relative; z-index: 1;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100vh; height: 100dvh;
}
.shell {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* ---------- Left stage ---------- */
.stage {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 2.2vh, 26px);
    padding: clamp(20px, 4.6vh, 52px) clamp(28px, 5vw, 80px);
    color: var(--stage-text);
}

.topbar {
    padding: 8px clamp(16px, 4vw, 56px);              /* <<< header height thodi badhi (pehle 6px) */
    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; }   /* <<< gap pehle 11px */
.brand-mark {
    flex: 0 0 auto;
    width: 48px; height: 48px;                         /* <<< HEADER LOGO SIZE (pehle 38px). Aur bada chahiye to 64px kar do */
    border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #1b1400;                   /* <<< pehle 22px (sirf tab dikhta hai jab logo image na ho) */
    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; }   /* <<< pehle 18px */
.brand-sub { font-size: 13px; font-weight: 500; color: var(--stage-dim); margin-top: 1px; }              /* <<< pehle 13px */

.kicker {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(8px, 1.6vh, 16px);
    padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
    color: var(--gold); background: rgba(241,196,15,.10); border: 1px solid rgba(241,196,15,.28);
}
.headline {
    margin: 0 0 clamp(8px, 1.6vh, 14px);
    font-size: clamp(26px, 3.1vw, 44px);
    line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: #fff; max-width: 15em;
}
.headline em { font-style: normal; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0; max-width: 34em; font-size: clamp(13px, 1.5vh + 2px, 15px); line-height: 1.6; color: var(--stage-dim); }

/* ===== "AUTO-CROP CARD TOOLS" / "PAN SERVICES" label: text beech me, dono side line ===== */
.group-label {
    display: flex; align-items: center; justify-content: center;   /* <<< text center me */
    gap: 14px;
    max-width: 600px;                                              /* <<< .tools / .svcs jitni hi width, taaki text boxes ke center me aaye */
    margin: 0 0 clamp(14px, 2.2vh, 20px);   /* <<< naam aur cards ke beech gap */
    font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--stage-dim);
}
.group-label::before,
.group-label::after { content: ""; flex: 1; height: 1px; }
.group-label::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.22)); }   /* <<< left line */
.group-label::after  { background: linear-gradient(90deg, rgba(255,255,255,.22), transparent); }   /* <<< right line */

.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 600px; }
.tool {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    padding: clamp(9px, 1.8vh, 15px) 6px; border-radius: 16px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.2;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.tool:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(241,196,15,.5); }
.tool i {
    width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--gold); background: rgba(241,196,15,.12); border: 1px solid rgba(241,196,15,.26);
}

.svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 600px; }
.svc {
    display: flex; align-items: center; gap: 12px; padding: clamp(9px, 1.6vh, 13px) 14px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(241,196,15,.16), rgba(255,255,255,.05));
    border: 1px solid rgba(241,196,15,.30);
    transition: transform .25s ease, border-color .25s ease;
}
.svc:hover { transform: translateY(-3px); border-color: rgba(241,196,15,.65); }
.svc i {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #1b1400; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}
.svc b { display: block; font-size: 13.5px; font-weight: 800; color: #fff; line-height: 1.2; }
.svc span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--stage-dim); line-height: 1.3; }

.stage-foot { font-size: 12px; color: var(--stage-dim); display: flex; align-items: center; gap: 8px; }
.stage-foot i { color: var(--gold); }

/* ---------- Right panel (same background, no split) ---------- */
.panel {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: clamp(14px, 3vh, 40px) 24px; overflow: hidden;
}
.login-card {
    position: relative;
    width: 100%; max-width: 440px;
    padding: clamp(20px, 3.6vh, 38px) clamp(24px, 3vw, 38px) clamp(16px, 2.8vh, 26px);
    border-radius: 28px; border: 1.5px solid transparent;
    background:
        radial-gradient(120% 55% 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);
}
.card-logo {                                   /* centered circular logo above "Welcome back" */
    width: clamp(66px, 11vh, 92px); height: clamp(66px, 11vh, 92px);
    margin: 0 auto clamp(10px, 1.8vh, 16px); 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);
}
.card-logo .in {
    width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--p-800);
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-title { margin: 0 0 5px; text-align: center; font-size: clamp(22px, 2.6vh + 6px, 28px); font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.card-sub { margin: 0 auto clamp(14px, 2.6vh, 24px); max-width: 30em; text-align: center; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.field { margin-bottom: clamp(10px, 1.9vh, 17px); }
.field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: #2b2750; }
.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 {
    width: 100%; height: clamp(46px, 6.4vh, 52px); 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::placeholder { color: #b0abc9; font-weight: 400; }
.control input:hover { border-color: #d3cbec; }
.control input: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; }
.caps-note { display: none; margin-top: 6px; font-size: 12px; font-weight: 600; color: #b45309; }
.caps-note.show { display: block; }
.caps-note i { margin-right: 5px; }

.btn-premium {
    position: relative; overflow: hidden; width: 100%; height: clamp(46px, 6.6vh, 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 {                          /* soft shine sweep on hover */
    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); } }

.or-line {
    display: flex; align-items: center; gap: 12px; margin: clamp(12px, 2.2vh, 20px) 0 clamp(10px, 1.8vh, 14px);
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #a29ec0;
}
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alt {
    display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
    min-height: 44px; padding: 8px 10px; border-radius: 13px; text-decoration: none;
    font-size: 13px; font-weight: 800; color: var(--p-800);
    background: #f6f2ff; border: 1.5px solid #e0d7f8;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.alt i { font-size: 13px; }
.alt:hover { transform: translateY(-2px); background: var(--p-800); color: #fff; border-color: var(--p-800); box-shadow: 0 10px 22px rgba(76,29,149,.32); }
.alt:focus-visible { outline: 2px solid var(--p-800); outline-offset: 2px; }

.security-footer {
    margin-top: clamp(10px, 2vh, 18px); padding-top: clamp(10px, 1.8vh, 16px); border-top: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; color: #16a34a;
}

/* ---------- Page footer (copyright from settings) ---------- */
.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; }

/* ================= Responsive ================= */
@media (max-width: 1180px) {
    .tools { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .tool { font-size: 11.5px; padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 991px) {
    body { overflow: auto; }
    .page { height: auto; min-height: 100vh; min-height: 100dvh; grid-template-rows: auto 1fr auto; }
    .shell { display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; }
    /* stage ko "transparent wrapper" bana diya taki order ho: headline > login > tools > services */
    .stage { display: contents; }
    .stage > div, .panel { width: 100%; max-width: 560px; }
    .stage > div:nth-child(1) { order: 1; padding: 18px 18px 0; }
    .panel { order: 3; padding: 18px 16px 6px; overflow: visible; align-items: flex-start; }
    .tools-wrap { order: 4; padding: 14px 18px 0; }
    .svcs-wrap { order: 5; padding: 16px 18px 20px; }
    .lede { font-size: 13px; margin-top: 8px; }
    .brand-mark { width: 46px; height: 46px; }          /* <<< mobile header logo (pehle 34px) */
    .brand-name { font-size: 16px; }                    /* <<< pehle 14px */
    .brand-sub { font-size: 11.5px; }                   /* <<< pehle 10.5px */
    .headline { margin: 0; font-size: clamp(22px, 6.4vw, 32px); max-width: none; }
    .login-card { margin-top: 0; max-width: none; padding: 24px 22px 18px; border-radius: 24px; }
    .card-logo { width: 84px; height: 84px; }
    .card-title { font-size: 24px; }
    .tools { gap: 8px; max-width: none; }
    .tool { font-size: 11.5px; padding: 10px 4px; }
    .svcs { max-width: none; }
    .group-label { max-width: none; }                   /* <<< mobile par label bhi poori width me center rahe */
}
@media (max-width: 560px) {
    .svcs { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
    .alt-actions { grid-template-columns: 1fr; }
}
@media (max-height: 720px) and (min-width: 992px) {   /* laptops: drop the extra text so everything fits one screen */
    .lede { font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
    .tool { padding: 8px 4px; gap: 6px; }
    .tool i { width: 30px; height: 30px; font-size: 13px; }
    .card-sub { display: none; }
}
@media (max-height: 560px) {                   /* very short screens: allow scrolling instead of cutting content */
    body { overflow: auto; }
    .page { height: auto; min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation-duration: .01ms !important; }
}