/* Auth entry is served independently of the dashboard build. */
@font-face {
  font-family: WoHeb;
  src: url("auth/fonts/hebrew-regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-2010, U+2013-201F, U+20AA;
}

@font-face {
  font-family: WoHeb;
  src: url("auth/fonts/hebrew-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0590-05FF, U+200C-2010, U+2013-201F, U+20AA;
}

.auth-entry {
  --text: #1b2340;
  --muted: #434f71;
  --line: #46568f40;
  --accent-ink: #195c48;
  min-height: 100dvh;
  padding: clamp(1rem, 4vw, 3rem);
  color: var(--text);
  background:
    radial-gradient(ellipse at 96% 0%, #91aecc66, transparent 57%),
    radial-gradient(ellipse at 96% 10%, #d4e5f4, transparent 60%),
    linear-gradient(133deg, #abc9e0, #cfdfec 55%, #eff3fa);
  font-family: WoHeb, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.auth-entry .auth-card {
  padding: clamp(1.25rem, 6vw, 2.5rem);
  border: 1px solid #ffffffd6;
  border-radius: 22px;
  background: linear-gradient(158deg, #ffffff80, #f8fbff3d 48%, #ffffff70);
  box-shadow: inset 0 1px 1px #ffffffc7, inset 0 -1px 2px #32438224,
    0 18px 42px -22px #2a3c755c, 0 2px 6px #3243821a;
}

.auth-entry .auth-heading {
  text-align: center;
}

.auth-entry .auth-heading .brand {
  margin-block-end: 1.1rem;
}

.auth-entry h1 {
  font-size: clamp(1.45rem, 4vw, 1.8rem);
}

.auth-entry .stack {
  gap: .9rem;
}

.auth-entry .auth-field {
  display: grid;
  gap: .35rem;
}

.auth-entry .stack input {
  min-height: 2.9rem;
  border: 1px solid #6d8099;
  border-radius: .75rem;
  background: #f8fbff;
}

.auth-entry .stack input:focus-visible {
  border-color: var(--accent-ink);
}

.auth-entry .stack button {
  min-height: 2.9rem;
  margin-block-start: .2rem;
  border: 1px solid #438c75;
  border-radius: .75rem;
  background: #bdf2dd;
  box-shadow: inset 0 1px 1px #ffffffc7;
  color: #173e34;
  font-weight: 700;
}

.auth-entry .stack button:hover {
  background: #9ee3c8;
}

.auth-entry .stack button:active {
  background: #83d9b8;
}

.auth-entry .alert {
  border-color: #a34155;
  background: #fff0f2;
  color: #7d2c3d;
}

.auth-entry .auth-footer {
  text-align: center;
}

@media (max-width: 30rem) {
  .auth-entry .auth-heading .brand {
    margin-block-end: .9rem;
  }
}
