body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(circle at 30% 20%, #1A2050 0%, #0C1024 55%);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.auth-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}

.auth-title {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
}

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

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

.auth-form label {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form input {
  background: var(--ink);
  border: 1px solid var(--panel-line);
  color: var(--paper);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--blue);
}

.pin-input {
  text-align: center;
  letter-spacing: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
}

.auth-btn {
  margin-top: 4px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.6; cursor: default; }

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}
.auth-links a { color: var(--muted); text-decoration: none; }
.auth-links a:hover { color: var(--paper); }

.auth-message {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}
.auth-message.show { display: block; }
.auth-message.error { background: rgba(229,72,77,0.12); color: #FF8A8E; }
.auth-message.success { background: rgba(63,182,139,0.12); color: #6EE7B7; }

.auth-footnote {
  margin-top: 20px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Two ways in: start a business, or join one that already exists. Kept
   visually separate from the sign-in form so nobody fills in the wrong one. */
.auth-split {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--panel-line);
  text-align: center;
}
.auth-split > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.auth-split-actions { display: flex; gap: 10px; }
.auth-btn.ghost {
  flex: 1; background: none; color: var(--blue);
  border: 1.5px solid var(--blue); font-weight: 600;
  display: block; text-align: center; text-decoration: none; padding: 11px;
}
.auth-btn.ghost:hover { background: var(--blue-dim); }
@media (max-width: 420px) { .auth-split-actions { flex-direction: column; } }

.legal-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px;
  color: var(--muted); margin-bottom: 14px; line-height: 1.45; cursor: pointer; }
.legal-check input { margin-top: 2px; flex: 0 0 auto; }
.legal-check a { color: var(--blue); }
label.legal-check.invalid span { color: var(--alert); }
