:root {
  --page-bg: #f5f7f9;
  --surface: #ffffff;
  --surface-muted: #f0f4f7;
  --text: #16212a;
  --muted: #65717c;
  --border: #d9e0e6;
  --accent: #14785f;
  --accent-strong: #0f604c;
  --danger-bg: #fff1f0;
  --danger-text: #9f2620;
  --notice-bg: #eef8f4;
  --notice-text: #145f4e;
  --shadow: 0 18px 50px rgba(22, 33, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.restricted-shell,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.restricted-panel,
.auth-panel {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.restricted-panel {
  padding: 42px 36px;
  text-align: center;
}

.restricted-logo {
  display: block;
  width: min(190px, 72%);
  height: auto;
  margin: 0 auto 26px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restricted-panel h1,
.auth-header h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1.15;
}

.restricted-panel p:last-child,
.auth-header p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.auth-panel {
  padding: 32px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.brand-mark__logo {
  display: block;
  width: min(170px, 70%);
  height: auto;
}

.auth-header {
  margin-bottom: 24px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 120, 95, 0.16);
}

.primary-action {
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: background 150ms ease, transform 150ms ease;
}

.primary-action:hover {
  background: var(--accent-strong);
}

.primary-action:active {
  transform: translateY(1px);
}

.auth-alert,
.auth-notice {
  margin-bottom: 18px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
}

.auth-alert {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.auth-notice {
  background: var(--notice-bg);
  color: var(--notice-text);
}

@media (max-width: 480px) {
  .auth-panel,
  .restricted-panel {
    padding: 28px 22px;
  }
}
