:root {
  color-scheme: light;
  --bg: #f4f7f9;
  --ink: #16212d;
  --muted: #5f6f7d;
  --line: #d8e1e8;
  --panel: #ffffff;
  --accent: #17685d;
  --accent-dark: #104d45;
  --notice: #fff8df;
  --notice-line: #ead48c;
  --danger: #b42318;
  --focus: #f2b84b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 34px;
}

.brand-panel {
  padding: 48px 0;
}

.brand-mark {
  width: 60px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 22px;
  font-weight: 800;
}

h1 {
  margin: 28px 0 12px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.brand-panel p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(22, 33, 45, 0.12);
}

.notice {
  border: 1px solid var(--notice-line);
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 12px 14px;
  background: var(--notice);
  color: #4b3b06;
  font-size: 14px;
  line-height: 1.45;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #2f3f4f;
  font-size: 14px;
  font-weight: 700;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.error {
  min-height: 18px;
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

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

.status {
  min-height: 22px;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 700;
  text-align: center;
}

.admin-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-shell h1 {
  font-size: 40px;
}

.admin-shell p {
  color: var(--muted);
  line-height: 1.5;
}

.admin-bar {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  align-items: end;
  margin: 24px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  background: #eef3f7;
  color: #2f3f4f;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding: 28px 0;
  }

  .brand-panel {
    padding: 0;
  }

  h1 {
    font-size: 42px;
  }

  .admin-bar {
    grid-template-columns: 1fr;
  }
}
