:root {
  color: #17201b;
  background: #f3f5f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f5f3;
}

.auth-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-panel {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid #d9dedb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(24, 35, 29, 0.08);
}

.auth-panel.compact { text-align: center; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 700;
}

.compact .brand { justify-content: center; }

h1 {
  margin: 0 0 12px;
  color: #14221b;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
}

p { margin: 0 0 20px; line-height: 1.55; }
.muted { color: #66716a; }

.context {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: -12px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6e9e7;
  color: #66716a;
  font-size: 13px;
}

.context strong { color: #25312a; font-size: 15px; }

form { margin-top: 24px; }

label,
.label-row {
  display: block;
  margin: 18px 0 7px;
  font-size: 14px;
  font-weight: 650;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row label { margin: 0; }

a {
  color: #087a4b;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #b9c1bc;
  border-radius: 6px;
  background: #fff;
  color: #17201b;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: #087a4b;
  box-shadow: 0 0 0 3px rgba(8, 122, 75, 0.14);
}

.code-input {
  height: 52px;
  text-align: center;
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.invite-code-input { font-size: 16px; font-variant-numeric: tabular-nums; }

button {
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  border: 0;
  border-radius: 6px;
  background: #087a4b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #07663f; }
button:disabled { cursor: default; opacity: 0.6; }
.resend-form { margin-top: 8px; }
.secondary-button { margin-top: 0; border: 1px solid #b9c1bc; background: #fff; color: #087a4b; }
.secondary-button:hover { background: #f3f6f4; }
button:focus-visible { outline: 3px solid rgba(8, 122, 75, 0.25); outline-offset: 2px; }

.switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6e9e7;
  text-align: center;
  color: #66716a;
  font-size: 14px;
}

.alert {
  margin: 18px 0;
  padding: 11px 12px;
  border-left: 3px solid #b42318;
  background: #fff3f1;
  color: #8a1c14;
  font-size: 14px;
}

.field-hint,
.optional { color: #737d77; font-size: 12px; font-weight: 400; }
.field-hint { margin: 6px 0 0; }

.status-mark,
.mail-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #e5f5ed;
  color: #087a4b;
  font-size: 24px;
  font-weight: 800;
}

.mail-mark { background: #fff3d8; color: #885c00; }
.secondary-link { display: inline-block; margin-top: 4px; font-size: 14px; }

.footer {
  height: 48px;
  color: #7a847e;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 520px) {
  .auth-shell { align-items: start; padding: 16px 0; }
  .auth-panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; padding: 28px 20px; }
}
