:root {
  color-scheme: light;
  --bg: #EDF2F7;
  --ink: #1B263B;
  --muted: #415A77;
  --line: #C9CED6;
  --accent: #2E8B57;
  --accent-strong: #1f6b41;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(27, 38, 59, 0.10);
}

.auth-logo {
  height: 160px;
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

button {
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

button.secondary:hover {
  border-color: var(--accent);
  background: #e7f4ec;
}

.back-button {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.back-button:hover {
  border-color: var(--accent);
  background: #e7f4ec;
}

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

.auth-link {
  justify-self: center;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.error {
  margin: 0;
  color: #b91c1c;
  font-weight: 700;
}

.success {
  margin: 0;
  color: #2E8B57;
  font-weight: 700;
}
