:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07090d;
  color: #edf4fc;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #07090d;
}

button,
input {
  font: inherit;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}

.auth-card {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid #27374b;
  border-radius: 10px;
  background: #0c121b;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.44);
}

.auth-card h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #e5edf7;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0.025em;
}

.auth-card h1::before {
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: #58a6ff;
  content: "";
  opacity: 0.82;
}

.auth-copy {
  margin: 7px 0 22px;
  color: #9aaabd;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.auth-card label {
  display: block;
  margin-bottom: 7px;
  color: #c6d5e7;
  font-size: 12px;
  font-weight: 750;
}

.auth-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-entry input,
.auth-entry button {
  min-height: 44px;
  border-radius: 6px;
}

.auth-entry input {
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #314359;
  outline: none;
  background: #080d14;
  color: #f3f7fc;
}

.auth-entry input:focus-visible {
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

.auth-entry button {
  padding: 0 18px;
  border: 1px solid #3c86d2;
  background: rgba(47, 129, 247, 0.18);
  color: #ddebff;
  font-weight: 780;
  cursor: pointer;
}

.auth-entry button:hover {
  background: rgba(47, 129, 247, 0.28);
}

.auth-entry button:focus-visible {
  outline: 2px solid #79c0ff;
  outline-offset: 2px;
}

.auth-error {
  min-height: 20px;
  margin: 11px 0 0;
  color: #ff9da7;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 420px) {
  .auth-card {
    padding: 24px 20px;
  }

  .auth-entry {
    grid-template-columns: minmax(0, 1fr);
  }
}

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