:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --line: #e1e5eb;
  --line-strong: #c4ccd7;
  --text: #151922;
  --muted: #5f6875;
  --muted-strong: #3f4752;
  --red: #c91522;
  --red-2: #d71f2a;
  --soft-red: #fff2f3;
  --soft-hover: #eef2f6;
  --focus-ring: rgba(215, 31, 42, 0.22);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: inherit;
}

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

.auth-panel {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-brand img,
.sidebar-brand img {
  display: block;
  width: 138px;
  height: auto;
}

.auth-panel h1 {
  margin: 18px 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-panel p,
.roadmap-grid p,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.admin-form h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.admin-form--compact {
  margin-top: 12px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: none;
}

.admin-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.admin-form input:focus {
  border-color: var(--red-2);
  outline: 3px solid var(--focus-ring);
}

input[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
}

.admin-form button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: 4px;
}

.auth-tabs a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-tabs strong,
.auth-tabs span {
  display: block;
}

.auth-tabs span {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.72;
}

.auth-tabs a.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.auth-helper-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.auth-inline-link {
  color: var(--red-2);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: var(--red);
}

.auth-reset {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.auth-reset summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(215, 31, 42, 0.42);
  border-radius: 8px;
  background: var(--soft-red);
  color: var(--red-2);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  list-style: none;
  text-align: center;
}

.auth-reset summary::-webkit-details-marker {
  display: none;
}

.auth-reset summary:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.auth-reset p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
