html,
body {
  margin: 0;
  min-height: 100%;
  background: #f6f8fb;
}

body {
  color: #17212b;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

.authPage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 18%, rgba(190, 242, 100, 0.18), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(22, 24, 28, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(22, 24, 28, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 24, 28, 0.04) 1px, transparent 1px),
    #f5f6f7;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
}

.authPage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.1));
}

.authShell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: minmax(0, 480px);
  place-content: center;
  background: transparent;
}

.authShellCompact {
  grid-template-columns: minmax(0, 480px);
}

.authLogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.authLogoMark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(20, 22, 28, 0.12);
}

.authWordmark {
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.authLogoInline {
  margin-bottom: 30px;
  color: #16181c;
}

.authKicker {
  margin: 0 0 12px;
  color: #3a730f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.authPanel {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 24px;
}

.authCard {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid rgba(22, 24, 28, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(20, 22, 28, 0.1), 0 1px 2px rgba(20, 22, 28, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.authCard h2 {
  margin: 0;
  color: #16181c;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.authSubcopy {
  margin: 10px 0 26px;
  color: #5f636b;
  font-size: 15px;
  line-height: 1.5;
}

.authFlash {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.authFlashError {
  border: 1px solid #f4cfcf;
  background: #fcebeb;
  color: #a92121;
}

.authFlashSuccess {
  border: 1px solid #cdebd5;
  background: #e9f6ed;
  color: #0f6b32;
}

.authFlashInfo {
  border: 1px solid #cfd8e3;
  background: #f3f7fb;
  color: #344256;
}

.authForm {
  display: grid;
  gap: 16px;
}

.authField {
  display: grid;
  gap: 8px;
}

.authField label {
  color: #23262b;
  font-size: 13px;
  font-weight: 600;
}

.authField input {
  width: 100%;
  height: 46px;
  border: 1px solid #d8dbdf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #16181c;
  font: inherit;
  font-size: 15px;
  outline: none;
  padding: 0 13px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.authField input::placeholder {
  color: #9aa0a7;
}

.authField input:focus {
  border-color: #18181b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.28);
}

.authSubmit {
  height: 46px;
  margin-top: 6px;
  border: 1px solid #172116;
  border-radius: 8px;
  background: #172116;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.authSubmit:hover {
  border-color: #22331f;
  background: #22331f;
  box-shadow: 0 8px 20px rgba(23, 33, 22, 0.16);
  transform: translateY(-1px);
}

.authSubmit:focus-visible,
.authLinks a:focus-visible,
.authLogo:focus-visible {
  outline: 2px solid rgba(132, 204, 22, 0.68);
  outline-offset: 3px;
}

.authLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: #8a8f96;
  font-size: 14px;
  font-weight: 600;
}

.authLinks a {
  color: #3f7d12;
  text-decoration: none;
}

.authLinks a:hover {
  color: #356a0f;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .authPage {
    padding: 0;
  }

  .authShell {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .authPanel {
    padding: 18px;
  }

  .authCard {
    padding: 26px 22px;
  }

  .authCard h2 {
    font-size: 28px;
  }

  .authLogoInline {
    margin-bottom: 26px;
  }
}
