/*
 * ChainRules user auth screens (login, register, password, verification).
 * Loaded after the app bundle by layouts/guest.blade.php; re-points the
 * shared neutral tokens to the ChainRules palette so every form component
 * (x-forms.*) picks up the dark look without per-view changes.
 */

.cr-auth {
  --color-primary: #3b82f6;
  --color-neutral-0: #0b0f14;
  --color-neutral-10: #111820;
  --color-neutral-50: #111820;
  --color-neutral-100: #26313d;
  --color-neutral-200: #2e3a48;
  --color-neutral-300: #4a5868;
  --color-neutral-400: #8b98a5;
  --color-neutral-500: #8b98a5;
  --color-neutral-600: #a9b4bf;
  --color-neutral-700: #c9d2db;
  --color-neutral-800: #dde4ea;
  --color-neutral-900: #e6edf3;
  --color-neutral-950: #ffffff;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px;
  background: #0b0f14;
  color: #e6edf3;
  font-family: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cr-auth::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 900px;
  height: 640px;
  top: -200px;
  right: -240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(37 99 235 / 0.28), rgb(37 99 235 / 0));
}

.cr-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e6edf3;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cr-auth-brand:hover {
  color: #ffffff;
}

.cr-auth-logo {
  display: block;
  height: 42px;
  width: auto;
}

.cr-auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid #23324a;
  background:
    radial-gradient(90% 70% at 100% 0%, rgb(37 99 235 / 0.16), rgb(37 99 235 / 0) 60%),
    #0e141b;
  box-shadow: 0 0 0 1px rgb(59 130 246 / 0.08), 0 40px 100px -30px rgb(37 99 235 / 0.45);
}

@media (min-width: 576px) {
  .cr-auth-card {
    padding: 32px 32px;
  }
}

.cr-auth-rule {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #8b98a5;
}

.cr-auth-tag {
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cr-auth-tag-if {
  background: #0c2a4d;
  color: #93c5fd;
}

.cr-auth-tag-then {
  background: #063b2c;
  color: #6ee7b7;
}

.cr-auth-note {
  margin: 0;
  max-width: 440px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #8b98a5;
}

.cr-auth .btn-primary {
  background: linear-gradient(180deg, #2f6feb, #1d4ed8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 28px -8px rgb(37 99 235 / 0.75);
}
