/* ─────────────────────────────────────────────────────────────────────────
   iRoll Dashboard — branded login
   Full-viewport dark hero in the iroll.co.za style (stacked headline, white +
   green outline stroke — dashboard copy: iROLL / DASHBOARD) with
   a liquid-glass card (safetygrip.plekify.com treatment: blur 22px + saturate 160%).
   Self-contained: the ops dashboard keeps dashboard.css untouched.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --ir-green: #2bb580;
  --ir-green-deep: #006640;
  --ir-bg: #0a1410;
  --ir-line: rgba(43, 181, 128, 0.18);
  --glass-bg: rgba(16, 32, 24, 0.45);
  --glass-line: rgba(255, 255, 255, 0.14);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

.login-page {
  font-family: var(--font-body);
  color: #fff;
  background: var(--ir-bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background: layered green glows over dark, like the storefront hero */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 42% at 78% 30%, rgba(43, 181, 128, 0.16), transparent 70%),
    radial-gradient(40% 34% at 12% 82%, rgba(43, 181, 128, 0.10), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(0, 102, 64, 0.22), transparent 75%),
    linear-gradient(180deg, #0a1410 0%, #0c1811 55%, #081009 100%);
}

.login-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 48px) clamp(20px, 5vw, 56px);
}

/* ── Left column ── */
.login-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ir-green);
  opacity: 0.9;
}

.login-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ir-green);
}

.login-mark { width: 18px; height: 18px; color: var(--ir-green); }

/* Stacked headline — same recipe as the storefront hero */
.login-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #f7fafc;
}

.login-headline .accent { color: var(--ir-green); }

.login-headline .outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ir-green);
  paint-order: stroke fill;
}

.login-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(247, 250, 252, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 6px;
}

/* ── Liquid-glass card ── */
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  padding: 28px 26px;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #0d130f;
  text-decoration: none;
  background: #fff;
  border: none;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(43, 181, 128, 0.45);
}

.btn-google:active { transform: translateY(0); }

.google-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.google-icon svg { width: 100%; height: 100%; }

.login-hint {
  font-size: 11px;
  color: rgba(247, 250, 252, 0.55);
  text-align: center;
  margin: 14px 0 0;
}

/* ── Right column: riders graphic ── */
.login-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-riders {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
}

/* ── Footer ── */
.login-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: rgba(247, 250, 252, 0.5);
}

.login-footer .sep { margin: 0 4px; }

.login-footer .store-link {
  color: var(--ir-green);
  text-decoration: none;
  font-weight: 500;
}

.login-footer .store-link:hover { text-decoration: underline; }

/* ── Fork-lightning canvas (above the bg glows, below content) ── */
.login-lightning-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
  }

  .login-left { align-items: center; text-align: center; }

  .login-eyebrow { justify-content: center; }

  .login-headline { font-size: clamp(48px, 13vw, 80px); }

  .login-sub { font-size: 15px; }

  .login-riders { max-width: 320px; }
}

@media (max-width: 480px) {
  .login-shell { padding-top: 32px; }

  .login-headline { font-size: clamp(44px, 15vw, 64px); }

  .login-headline .outline { -webkit-text-stroke-width: 2px; }

  .login-card { padding: 22px 18px; }
}

/* Reduced motion — the page is static, this silences any future additions */
@media (prefers-reduced-motion: reduce) {
  .btn-google { transition: none; }
  .btn-google:hover { transform: none; }
}
