/* CRMzy shared base: deep-space indigo world, one eclipse light. Used by login.html and index.html. */
@font-face { font-family: "Lenskart Sans"; src: url("/f/assets/fonts/LenskartSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lenskart Sans"; src: url("/f/assets/fonts/LenskartSans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lenskart Sans"; src: url("/f/assets/fonts/LenskartSans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lenskart Sans"; src: url("/f/assets/fonts/LenskartSans-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  --ground: #06051a;
  --ground-2: #090825;
  --surface: #0e0c2b;
  --surface-2: #151338;
  --surface-3: #1c1a47;
  --line: rgba(156, 146, 255, 0.13);
  --line-2: rgba(156, 146, 255, 0.24);
  --ink: #efeeff;
  --ink-2: #bdbae3;
  --ink-3: #8f8cbd;
  --violet: #6d5cff;
  --violet-2: #9384ff;
  --rim: #d4ccff;
  --glow: rgba(120, 100, 255, 0.55);
  --ok: #62e3ad;
  --warn: #ffc875;
  --err: #ff8193;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Lenskart Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: rgba(109, 92, 255, 0.55); color: #fff; }
input, textarea, select, button { font: inherit; color: inherit; caret-color: var(--violet-2); }
a { color: var(--rim); text-underline-offset: 3px; text-decoration-color: rgba(212, 204, 255, 0.4); }
a:hover { text-decoration-color: var(--rim); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

* { scrollbar-width: thin; scrollbar-color: rgba(156, 146, 255, 0.22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(156, 146, 255, 0.2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* buttons: the white pill is the one primary action on any screen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { border-color: rgba(190, 182, 255, 0.5); background: rgba(156, 146, 255, 0.08); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: #f4f3ff; color: #0b0a24; border-color: transparent; font-weight: 700;
  box-shadow: 0 6px 24px -8px rgba(146, 132, 255, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.btn.primary:hover { background: #fff; box-shadow: 0 10px 36px -8px rgba(146, 132, 255, 0.95), 0 0 0 1px #fff inset; }
.btn:disabled, .btn.primary:disabled { opacity: 0.38; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: #0b0a24 transparent #0b0a24 transparent; animation: spin 0.8s linear infinite;
}
.btn:not(.primary).busy::after { border-color: var(--ink) transparent var(--ink) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.field {
  width: 100%; height: 44px; padding: 0 16px; border-radius: 12px;
  background: rgba(14, 12, 43, 0.72); border: 1px solid var(--line-2);
  transition: border-color 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s;
}
.field::placeholder { color: var(--ink-3); }
.field:hover { border-color: rgba(176, 166, 255, 0.36); }
.field:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(109, 92, 255, 0.22); background: rgba(18, 16, 52, 0.9); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  animation: toastIn 0.45s var(--ease);
}
.toast.err { border-color: rgba(255, 129, 147, 0.5); }
.toast.err::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--err); margin-right: 10px; vertical-align: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (prefers-reduced-motion: reduce) {
  .btn.busy { color: inherit !important; }
  .btn.busy::after { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
