:root {
  --auth-canvas: #f4f6f5;
  --auth-surface: #ffffff;
  --auth-ink: #17201c;
  --auth-muted: #66746d;
  --auth-border: #d9e0dc;
  --auth-accent: #147d64;
  --auth-danger: #a52f35;
  --auth-danger-soft: #faeaea;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--auth-canvas);
  color: var(--auth-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}

.auth-panel {
  width: min(100%, 390px);
  padding: 28px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  background: var(--auth-surface);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--auth-border);
}

.auth-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--auth-ink);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 15px;
}

.auth-brand div span {
  margin-top: 2px;
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-heading {
  margin: 25px 0 20px;
}

.auth-heading p {
  margin: 0 0 6px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-heading h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.auth-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #efc9cb;
  border-radius: 6px;
  background: var(--auth-danger-soft);
  color: var(--auth-danger);
  line-height: 1.4;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label,
.auth-form label span {
  display: grid;
}

.auth-form label {
  gap: 7px;
  font-weight: 650;
}

.auth-form input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #c5cec9;
  border-radius: 6px;
  background: #ffffff;
  color: var(--auth-ink);
  outline: none;
}

.auth-form input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 100, 0.14);
}

.auth-form button {
  min-height: 42px;
  margin-top: 3px;
  border: 0;
  border-radius: 6px;
  background: var(--auth-accent);
  color: #ffffff;
  font-weight: 750;
  cursor: pointer;
}

.auth-form button:hover {
  background: #0f6d56;
}

.auth-form button:focus-visible {
  outline: 3px solid rgba(20, 125, 100, 0.24);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .auth-shell {
    align-items: start;
    padding: 14px;
  }

  .auth-panel {
    margin-top: max(28px, 9vh);
    padding: 22px;
  }
}
