/* ── Design tokens ── */
:root {
  --ca-bg: #F2EDE5;
  --ca-surface: #FFFFFF;
  --ca-text: #1A1A1A;
  --ca-mid: #6B6560;
  --ca-light: #A09890;
  --ca-border: #E0D9D0;
}

/* ── Base ── */
body {
  background: var(--ca-bg) !important;
  color: var(--ca-text);
}

body > header {
  display: block !important;
}

/* Hide promo bar on auth page */
body > header + .bg-blue-800 {
  display: none !important;
}

/* ── Page layout ── */
.create-account-v2 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--ca-bg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.create-account-shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── Card ── */
.ca-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px 32px;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 1024px) {
  .ca-card {
    padding: 48px 40px 44px;
  }
}

/* ── Logo ── */
.ca-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.ca-logo img {
  height: 36px;
  object-fit: contain;
}

/* ── Title / Subtitle ── */
.ca-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  text-align: center;
  margin-bottom: 6px;
  color: var(--ca-text);
}

.ca-sub {
  font-size: 14px;
  color: var(--ca-mid);
  text-align: center;
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.5;
}

.ca-sub strong {
  font-weight: 500;
  color: var(--ca-text);
}

.ca-sub a {
  color: var(--ca-mid);
  text-decoration: none;
}

.ca-sub a:hover {
  color: var(--ca-text);
  text-decoration: underline;
}

/* ── Google button — matches product page secondary button style ── */
.ca-btn-google {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid #d4c8bc;
  border-radius: 16px;
  background: #fff9f1;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #1f3a5f;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 18px;
}

.ca-btn-google:hover {
  background: #f3ece3;
  border-color: #c0b8af;
  text-decoration: none;
  color: #1f3a5f;
}

/* ── Divider ── */
.ca-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ca-divider-line {
  flex: 1;
  height: 1px;
  background: var(--ca-border);
}

.ca-divider-text {
  font-size: 12px;
  color: var(--ca-light);
  font-weight: 400;
  white-space: nowrap;
}

.ca-divider-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--ca-mid);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ca-divider-btn:hover {
  color: var(--ca-text);
}

/* ── Fields — reset site's global floating-label system ── */
.ca-card label {
  position: static !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ca-mid) !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.3px !important;
  white-space: normal !important;
  overflow: visible !important;
  max-width: none !important;
  cursor: default !important;
  z-index: auto !important;
  text-overflow: clip !important;
}

.ca-card form input:placeholder-shown + label,
.ca-card form input:focus + label {
  transform: none !important;
  font-size: 12px !important;
  color: var(--ca-mid) !important;
  cursor: default !important;
}

.ca-card form ::-webkit-input-placeholder { opacity: 1 !important; }
.ca-card form ::-moz-placeholder { opacity: 1 !important; }
.ca-card form ::placeholder { opacity: 1 !important; }

.ca-field {
  margin-bottom: 14px;
}

.ca-label {
  display: block !important;
  position: static !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ca-mid) !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.3px !important;
}

.ca-input {
  width: 100%;
  padding: 13px 16px !important;
  border: 1px solid var(--ca-border) !important;
  border-radius: 12px !important;
  font-family: inherit;
  font-size: 15px !important;
  line-height: 19.5px !important;
  height: auto !important;
  color: var(--ca-text);
  background: #FAFAF8 !important;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-shadow: none !important;
}

.ca-input:focus {
  border-color: var(--ca-text) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.ca-input::placeholder {
  color: var(--ca-light);
  opacity: 1 !important;
}

/* Field header row (label + forgot link) */
.ca-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ca-field-link {
  font-size: 13px;
  color: var(--ca-mid);
  text-decoration: none;
  font-weight: 400;
  display: block;
  text-align: right;
  margin-bottom: 12px;
}

.ca-field-link:hover {
  color: var(--ca-text);
}

/* ── Primary button — matches product page .product-btn-primary ── */
.ca-btn-primary {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #1f3a5f;
  color: #fff9f1;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 6px;
  margin-bottom: 16px;
}

.ca-btn-primary:hover {
  background: #172e4e;
}

/* ── Page footer ── */
.ca-page-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--ca-light);
  letter-spacing: 0.05em;
}

/* ── Switch row ── */
.ca-switch-row {
  text-align: center;
  font-size: 14px;
  color: var(--ca-mid);
  font-weight: 300;
  margin-top: 4px;
}

.ca-switch-row a {
  color: var(--ca-text);
  font-weight: 500;
  text-decoration: none;
}

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

/* ── Newsletter ── */
.ca-newsletter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0 4px;
  margin-bottom: 6px;
}

.ca-newsletter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ca-text);
  cursor: pointer;
}

.ca-newsletter label {
  font-size: 13px;
  color: var(--ca-mid);
  line-height: 1.5;
  cursor: pointer;
}

/* ── Error / Alert ── */
.ca-error {
  background: #FEF2F2;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #7F1D1D;
  line-height: 1.5;
}

.ca-alert {
  background: #FEF2F2;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #7F1D1D;
  width: 100%;
  max-width: 400px;
}

/* ── Touch targets ── */
.ca-btn-google,
.ca-btn-primary,
.ca-divider-btn,
.ca-field-link,
.ca-switch-row a {
  touch-action: manipulation;
}

/* ── Focus-visible rings ── */
.ca-btn-google:focus-visible,
.ca-btn-primary:focus-visible {
  outline: 3px solid #1f3a5f;
  outline-offset: 2px;
}

.ca-divider-btn:focus-visible {
  outline: 2px solid #1f3a5f;
  outline-offset: 2px;
  border-radius: 2px;
}

.ca-input:focus-visible {
  outline: 2px solid #1f3a5f;
  outline-offset: -1px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ca-btn-google,
  .ca-btn-primary,
  .ca-input {
    transition: none;
  }
}

