:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --ink: #17232d;
  --muted: #69756f;
  --line: #d9dfdb;
  --green: #2f806d;
  --green-dark: #1f6656;
  --yellow: #f4cb49;
  --surface: #ffffff;
  --background: #f3f5f1;
  --danger: #a23d37;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.auth-shell {
  width: min(100% - 32px, 430px);
  margin: 0 auto;
  padding: clamp(36px, 9vh, 86px) 0 28px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: #223027;
  font-size: 18px;
  font-weight: 900;
}

.auth-brand div {
  display: grid;
  gap: 2px;
}

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

.auth-brand span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.auth-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(31, 52, 43, 0.08);
}

.auth-eyebrow {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.auth-subtitle {
  margin: 9px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 16px;
}

label:not(.show-password) {
  display: grid;
  gap: 7px;
}

label > span {
  color: #34423c;
  font-size: 13px;
  font-weight: 800;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bec9c3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 128, 109, 0.14);
}

.show-password {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.show-password input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--green);
}

.auth-submit {
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.auth-submit:hover:not(:disabled) {
  background: var(--green-dark);
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-result {
  margin: 0;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-result.error {
  background: #fff0ee;
  color: var(--danger);
}

.auth-result.ok {
  background: #eaf6f0;
  color: var(--green-dark);
}

.auth-address {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .auth-shell {
    width: min(100% - 24px, 430px);
    padding-top: 24px;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  h1 {
    font-size: 23px;
  }
}
