* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6fb;
  color: #162031;
}

a {
  color: #2066f5;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(240px, 360px);
  gap: 16px;
  align-items: start;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(22, 32, 49, 0.08);
}

.muted {
  color: #6e7b91;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row.between {
  justify-content: space-between;
}

.form-row {
  margin: 16px 0;
  align-items: stretch;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.captcha-box {
  display: grid;
  gap: 8px;
}

.captcha-mount {
  min-height: 44px;
}

.captcha-mount.ready {
  min-height: 12px;
}

.admin-form {
  margin: 14px 0 16px;
  padding: 14px;
  border: 1px solid #e5eaf4;
  border-radius: 14px;
  background: #fafcff;
}

.input,
.select,
.button {
  border-radius: 12px;
  border: 1px solid #d9dfec;
  padding: 10px 12px;
  font-size: 14px;
}

.input,
.select {
  min-width: 120px;
  background: #fff;
}

.input.wide {
  width: 100%;
}

.textarea {
  min-height: 88px;
  resize: vertical;
  font-family: inherit;
}

.input.grow {
  flex: 1 1 220px;
}

.number-input {
  width: 140px;
}

.compact-form-row {
  margin-top: 0;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: #4c5a70;
  font-size: 14px;
}

.action-row {
  gap: 6px;
}

.button {
  background: #eff4ff;
  cursor: pointer;
}

.button.primary {
  background: #2066f5;
  color: #fff;
  border-color: #2066f5;
}

.button.danger {
  background: #fff1f2;
  color: #b4232f;
  border-color: #fecdd3;
}

.wide-button {
  width: 100%;
}

.provider-button {
  width: 100%;
  text-align: left;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #2066f5;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.big-number {
  font-size: 34px;
  font-weight: 800;
  margin: 8px 0;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.item {
  border: 1px solid #e5eaf4;
  border-radius: 14px;
  padding: 12px;
  background: #fafcff;
}

.item h3,
.item p {
  margin: 0;
}

.item + .item {
  margin-top: 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #edf1f7;
  vertical-align: top;
}

.error {
  color: #d62739;
}

.success {
  color: #058b56;
}

.code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  background: #f6f8fc;
  border-radius: 10px;
  padding: 8px;
}

.inline-code {
  display: inline-block;
}

@media (max-width: 768px) {
  .page {
    padding: 16px;
  }

  .hero {
    flex-direction: column;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }
}
