:root {
  --bg-start: #f7f9fc;
  --bg-end: #edf3ff;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #5f6778;
  --border: #d6dce8;
  --accent: #3826FF;
  --accent-soft: #e6eeff;
  --success: #0a7a3d;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
}

.auth-card {
  width: min(480px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.auth-card--plain {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.auth-clerk-only {
  position: fixed;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clerk-panel-center {
  width: min(100%, 720px);
  display: flex;
  justify-content: center;
}

#clerk-sign-in,
#clerk-sign-up {
  width: 100%;
  display: flex;
  justify-content: center;
}

#clerk-sign-in > *,
#clerk-sign-up > * {
  width: 100%;
  margin-inline: auto !important;
}

#clerk-sign-in > div,
#clerk-sign-up > div {
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
}

#clerk-sign-in > div > div,
#clerk-sign-up > div > div {
  margin-inline: auto !important;
}

#clerk-sign-in .cl-rootBox,
#clerk-sign-up .cl-rootBox,
#clerk-sign-in .cl-cardBox,
#clerk-sign-up .cl-cardBox {
  margin-inline: auto !important;
}

.clerk-centered-root,
.clerk-centered-card {
  margin-inline: auto !important;
}

.clerk-centered-root {
  width: 100%;
  display: flex;
  justify-content: center;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  padding: 10px 12px;
}

button,
.button-link {
  appearance: none;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.primary-button,
.button-link.primary-button {
  background: var(--accent);
  color: #fff;
}

.secondary-button,
.button-link.secondary-button {
  background: #eef2f8;
  color: #1f2937;
}

.button-row {
  display: grid;
  gap: 10px;
}

#status {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw - 48px, 720px);
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

#status.success {
  color: var(--success);
}

#status.error {
  color: var(--error);
}

.switch-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.switch-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.switch-text a:hover {
  text-decoration: underline;
}

.small-note {
  font-size: 13px;
  color: var(--muted);
}
