:root {
  --auth-bg: #0c0c0c;
  --auth-surface: #1a1a1a;
  --auth-border: #333;
  --auth-text: #f0f0f0;
  --auth-muted: #9a9a9a;
  --ebay-blue: #3665f3;
  --ebay-red: #e53238;
  --auth-radius: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--auth-text);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2744 0%, var(--auth-bg) 55%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  line-height: 1.5;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand img {
  height: 48px;
  width: auto;
  display: inline-block;
  filter: brightness(1.05);
}

.auth-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 32px 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.auth-lead {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--auth-muted);
  text-align: center;
}

.auth-error {
  background: rgba(229, 50, 56, 0.12);
  border: 1px solid rgba(229, 50, 56, 0.45);
  color: #ffb4b7;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-muted);
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--auth-text);
  background: #0f0f0f;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--ebay-blue);
  box-shadow: 0 0 0 3px rgba(54, 101, 243, 0.25);
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--ebay-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.auth-submit:hover {
  background: #2850d9;
}

.auth-submit:active {
  transform: scale(0.99);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}

.auth-footer a {
  color: var(--ebay-blue);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-muted);
  border: 1px solid var(--auth-border);
  border-radius: 999px;
}
