:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #102527;
  --muted: #5a7073;
  --line: #cddadb;
  --surface: #ffffff;
  --teal: #167c80;
  --teal-dark: #0f5f63;
  --night: #071719;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #eef4f3;
  color: var(--ink);
}

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

.auth-card {
  width: min(420px, 100%);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(7, 23, 25, 0.16);
}

.auth-brand {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 24px 28px;
  background: var(--night);
}

.auth-brand img {
  width: min(236px, 88%);
  height: auto;
  display: block;
}

.auth-body {
  padding: 28px 28px 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.auth-copy {
  margin: 8px 0 22px;
  color: var(--muted);
  line-height: 1.45;
}

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

.name-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #aebfc1;
  border-radius: 8px;
  padding: 10px 13px;
  background-color: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: none;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L9 11L13 7' stroke='%235a7073' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.16);
}

button {
  min-height: 48px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-action {
  background: #ffffff;
  color: var(--teal-dark);
  border-color: var(--line);
}

.secondary-action:hover {
  background: #f2f8f7;
  border-color: var(--teal);
}

.auth-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-message.is-error {
  color: #b42318;
  font-weight: 800;
}

.auth-message.is-success {
  color: var(--teal-dark);
  font-weight: 800;
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 460px) {
  .auth-shell {
    padding: 10px;
    place-items: stretch;
  }

  .auth-card {
    min-height: calc(100vh - 20px);
  }

  .auth-body {
    padding: 24px 18px;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }
}
