@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&display=swap');
/* smartid Hotline theme for Chatwoot (hotline.smartid.my).
   Injected by NPM (sub_filter) - no Chatwoot code changed, safe across upgrades.
   Brand: TIME #7C3AED, navy #1E1B4B, palm logo in real colours. */

/* 1. Brand scale: Chatwoot's "blue" tokens become smartid violet (values are "r g b"). */
:root {
  --blue-1: 253 252 255; --blue-2: 250 247 255; --blue-3: 243 237 255; --blue-4: 235 226 255;
  --blue-5: 224 212 255; --blue-6: 210 194 253; --blue-7: 190 168 250; --blue-8: 164 134 245;
  --blue-9: 124 58 237;  --blue-10: 109 40 217; --blue-11: 91 33 182;  --blue-12: 46 16 101;
  --text-blue: 91 33 182; --border-blue: 190 168 250; --border-blue-strong: 124 58 237;
}
.dark {
  --blue-1: 19 16 34;  --blue-2: 26 20 46;  --blue-3: 40 28 72;  --blue-4: 50 34 92;
  --blue-5: 60 42 108; --blue-6: 72 52 128; --blue-7: 88 66 156; --blue-8: 110 84 196;
  --blue-9: 124 58 237; --blue-10: 139 92 246; --blue-11: 196 181 253; --blue-12: 237 233 254;
  --text-blue: 196 181 253; --border-blue: 88 66 156; --border-blue-strong: 139 92 246;
}

/* Chatwoot compiles "n-brand" to a fixed blue, so map those utilities to violet too. */
.bg-n-brand { background-color: #7C3AED !important; }
.bg-n-brand\/5 { background-color: rgb(124 58 237 / .05) !important; }
.bg-n-brand\/10 { background-color: rgb(124 58 237 / .10) !important; }
.bg-n-brand\/20 { background-color: rgb(124 58 237 / .20) !important; }
.text-n-brand { color: #7C3AED !important; }
.dark .text-n-brand { color: #A78BFA !important; }
.border-n-brand { border-color: #7C3AED !important; }
.border-n-brand\/50 { border-color: rgb(124 58 237 / .5) !important; }
.outline-n-brand { outline-color: #7C3AED !important; }
.fill-n-brand { fill: #7C3AED !important; }
.ring-n-brand { --tw-ring-color: #7C3AED !important; }
::selection { background: rgb(124 58 237 / .28); }
input:focus, textarea:focus, select:focus { border-color: #7C3AED !important; box-shadow: 0 0 0 3px rgb(124 58 237 / .18) !important; }

/* 2. Sign-in pages (login, forgot password, reset): same look as the smartid.my hero.
   Always dark (like the site hero), Geist, photo + navy veil, white pill button.
   Two columns on desktop (brand left, form right), one column on phones. */
#app main.min-h-screen.py-20 {
  --hl-ink: #F5F7FF; --hl-muted: #A9B0C8; --hl-line: rgba(255,255,255,.14);
  position: relative; isolation: isolate; min-height: 100vh; margin: 0;
  display: grid !important; grid-template-columns: minmax(0, 540px) minmax(0, 440px);
  justify-content: center; align-content: center; align-items: center; column-gap: 96px;
  padding: 48px 24px 88px !important;
  font-family: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  color: var(--hl-ink);
  background:
    radial-gradient(55% 60% at 85% 20%, rgba(124,58,237,.35), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(37,99,235,.28), transparent 70%),
    linear-gradient(90deg, rgba(9,10,19,.97) 0%, rgba(14,12,44,.90) 48%, rgba(30,27,75,.78) 100%),
    url("https://smartid.my/assets/photo-time-office.webp") center / cover no-repeat,
    #0B0A24 !important;
}
#app main.min-h-screen.py-20 * { font-family: inherit; }

/* Left: brand */
#app main.min-h-screen.py-20 > section:first-child { margin: 0 !important; max-width: none; text-align: left; }
#app main.min-h-screen.py-20 > section:first-child img { margin: 0 !important; height: 46px !important; }
#app main.min-h-screen.py-20 > section:first-child img:first-of-type { display: none !important; }      /* light logo */
#app main.min-h-screen.py-20 > section:first-child img:nth-of-type(2) { display: block !important; }    /* light-text logo for dark */
#app main.min-h-screen.py-20 > section:first-child::before {
  content: "Support team"; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--hl-line); background: rgba(255,255,255,.06);
  font-size: 14px; font-weight: 600; color: var(--hl-ink);
}
#app main.min-h-screen.py-20 > section:first-child h2 {
  margin-top: 30px !important; text-align: left !important;
  font-size: clamp(38px, 4.4vw, 60px) !important; line-height: 1.02 !important; font-weight: 700 !important;
  letter-spacing: -.035em; color: var(--hl-ink) !important;
}
#app main.min-h-screen.py-20 > section:first-child::after {
  content: "One inbox for every smartid conversation. Sign in to help schools and businesses using smartid.";
  display: block; margin-top: 20px; max-width: 470px; font-size: 18px; line-height: 1.55; color: var(--hl-muted); text-align: left;
}

/* Right: form card (glass) */
#app main.min-h-screen.py-20 > section.shadow {
  margin: 0 !important; width: 100% !important; max-width: 440px !important; padding: 40px !important;
  border-radius: 24px !important; border: 1px solid var(--hl-line) !important;
  background: rgba(17,20,42,.62) !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7) !important; color: var(--hl-ink);
}
#app main.min-h-screen.py-20 > section.shadow label,
#app main.min-h-screen.py-20 > section.shadow p,
#app main.min-h-screen.py-20 > section.shadow span:not(button span) { color: var(--hl-ink) !important; }
#app main.min-h-screen.py-20 > section.shadow input {
  background: rgba(255,255,255,.06) !important; color: #fff !important; border-radius: 12px !important;
  outline: 1px solid rgba(255,255,255,.16) !important; border-color: rgba(255,255,255,.16) !important;
}
#app main.min-h-screen.py-20 > section.shadow input::placeholder { color: #7D84A0 !important; }
#app main.min-h-screen.py-20 > section.shadow input:focus { outline-color: #A78BFA !important; box-shadow: 0 0 0 3px rgba(167,139,250,.25) !important; }
#app main.min-h-screen.py-20 > section.shadow .text-link,
#app main.min-h-screen.py-20 > section.shadow a { color: #C4B5FD !important; }
#app main.min-h-screen.py-20 button.bg-n-brand {
  background: #fff !important; color: #0B1026 !important; border-radius: 999px !important;
  height: 52px !important; font-weight: 600 !important; box-shadow: 0 12px 30px -12px rgba(255,255,255,.35) !important;
}
#app main.min-h-screen.py-20 button.bg-n-brand span { color: #0B1026 !important; }
#app main.min-h-screen.py-20 button.bg-n-brand:hover { background: #EDEBFF !important; }
#app main.min-h-screen.py-20::after {
  content: "smartid by Pointgate Systems Sdn Bhd · smartid.my"; position: absolute; left: 0; right: 0; bottom: 24px;
  text-align: center; font-size: 13px; color: #7D84A0;
}

/* Phones / small screens: one column */
@media (max-width: 1023px) {
  #app main.min-h-screen.py-20 { grid-template-columns: minmax(0, 480px); row-gap: 32px; padding: 40px 16px 80px !important; }
  #app main.min-h-screen.py-20 > section:first-child::after { font-size: 16px; }
  #app main.min-h-screen.py-20 > section.shadow { padding: 28px !important; max-width: none !important; }
}

/* 3. Dashboard touches */
.dark body, .dark #app { background-color: #0E0F1A; }

/* Links */
.text-link { color: #7C3AED !important; }
.dark .text-link { color: #A78BFA !important; }
