* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --page: #111318;
  --card: #1b1e25;
  --border: #30343d;
  --text: #f1f4fa;
  --muted: #a6afbf;
  --placeholder: #747f91;
  --accent: #dce7f7;
  --accent-text: #172033;
  --focus: #91b8f5;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgb(0 0 0 / 16%);
}

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  color: #b8c9e5;
  background: #2a2e38;
  border-radius: 12px;
}

.mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heading {
  margin-bottom: 26px;
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin: 0 0 7px;
  color: #d8deea;
  font-size: 13px;
  font-weight: 550;
}

input {
  width: 100%;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 11px 12px;
  border: 1px solid #3a414d;
  border-radius: 8px;
  outline: none;
  background: #171a20;
  color: var(--text);
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input::placeholder {
  color: var(--placeholder);
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(145 184 245 / 14%);
}

.form-link {
  display: flex;
  justify-content: flex-end;
  margin: -5px 0 20px;
}

a {
  color: #a8c9ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}

button:hover,
.button:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

button:active,
.button:active {
  transform: translateY(1px);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #242832;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.email {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
}

.back-link {
  display: block;
  width: fit-content;
  margin: 19px auto 0;
  text-align: center;
}

.status-code {
  margin: -8px 0 22px;
  color: #c4ccda;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-align: center;
}

@media (max-width: 420px) {
  .card {
    padding: 27px 22px;
    border-radius: 14px;
  }

  h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}