/* =========================================================================
   auth.css — layout shell for the authentication screens.
   Depends on ui-kit.css for tokens and components.
   Two-column split: form column + brand panel (panel hides under 1024px).
   ========================================================================= */

.auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

@media (min-width: 1024px) {
  .auth { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ form side */
.auth-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .auth-main { padding: 2.5rem; }
}

.auth-brandbar {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .auth-brandbar { justify-content: flex-start; }
}

.auth-brandbar img { height: 2.25rem; width: auto; display: block; }

/* the wordmark is dark-on-light; swap to the white cut in dark mode */
.auth-brandbar .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-brandbar .logo-light { display: none; }
  :root:not([data-theme="light"]) .auth-brandbar .logo-dark  { display: block; }
}
[data-theme="dark"] .auth-brandbar .logo-light { display: none; }
[data-theme="dark"] .auth-brandbar .logo-dark  { display: block; }

.auth-center {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem;
}

.auth-stack {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.auth-legal {
  font-size: 0.75rem;
  line-height: 1.1rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 1024px) {
  .auth-legal { text-align: left; }
}

/* ----------------------------------------------------------- brand side */
.auth-aside {
  position: relative;
  display: none;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 10%, hsl(174 70% 38%) 0%, transparent 55%),
    linear-gradient(150deg, hsl(174.7 84% 30%) 0%, hsl(176 82% 22%) 55%, hsl(178 76% 16%) 100%);
  color: #fff;
  padding: 3.5rem;
}

@media (min-width: 1024px) {
  .auth-aside { display: flex; flex-direction: column; justify-content: space-between; }
}

/* concentric rings echoing the crosshair mark */
.auth-aside::after {
  content: "";
  position: absolute;
  right: -14rem;
  bottom: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow:
    0 0 0 5rem rgb(255 255 255 / 0.045),
    0 0 0 11rem rgb(255 255 255 / 0.03),
    0 0 0 17rem rgb(255 255 255 / 0.02);
  pointer-events: none;
}

.auth-aside > * { position: relative; z-index: 1; }

.auth-quote h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 0.875rem;
}

.auth-quote p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.78);
  max-width: 36ch;
}

.auth-aside-foot {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.6);
}

.auth-mark img { height: 2.5rem; width: auto; display: block; }

/* --------------------------------------------------------- 2FA code box */
.otp-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  height: 3rem;
}
