:root {
  --auth-bg: #ffffff;
  --auth-text: #111827;
  --auth-muted: #6b7280;
  --auth-line: #e5e7eb;
  --auth-primary: #111827;
}

* {
  box-sizing: border-box;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  padding: 24px;
  background: #ffffff;
}

.auth-card.compact {
  max-width: 430px;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin-top: 8px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.auth-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}

.auth-button {
  border: 0;
  border-radius: 10px;
  background: var(--auth-primary);
  color: #ffffff;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-button-secondary {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: var(--auth-text);
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-links {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.auth-link {
  color: #374151;
  font-size: 14px;
  text-decoration: underline;
}

.auth-feedback {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 12px;
  font-size: 14px;
}

.auth-feedback.success {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.auth-feedback.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.captcha-box {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
}

.captcha-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.captcha-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.captcha-widget {
  margin-top: 10px;
  min-height: 70px;
}

.captcha-note {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.consent-scope-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.consent-scope-item {
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.consent-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
