/* CrownStore — Auth base + Sign In
   All auth pages import this file.
   Brand: warm ivory bg, cream cards, Playfair Display titles,
   forest-green (#4a5c47) buttons, gold (#b8945a) focus/links.
---------------------------------------------------------------- */

/* ── Base auth page wrapper ──────────────────────────────────── */
.t1-auth-page {
  width: 100%;
  padding: 56px 20px;
  display: flex;
  justify-content: center;
  background: var(--theme-bg, #f8f4ee);
}

.t1-auth-container {
  width: 100%;
  max-width: 400px;
  background: var(--theme-surface-card, #f2ede3);
  padding: 32px 32px 44px;
  border-radius: var(--theme-radius, 0px);
  border: 1px solid var(--theme-border, #c4b8a0);
}

/* Base title */
.t1-auth-title {
  font-family: var(--theme-font-display, 'Playfair Display', Georgia, serif);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin-bottom: 24px;
  color: #2a2118 !important;
}

/* Error */
.t1-auth-error {
  background: color-mix(in srgb, #b00 12%, transparent);
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #b00 35%, transparent);
  border-radius: var(--theme-radius, 0px);
  color: #9b0000;
  font-size: 13.5px;
  margin-bottom: 12px;
}

/* Success message */
.t1-auth-message {
  background: color-mix(in srgb, var(--theme-primary, #4a5c47) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-primary, #4a5c47) 30%, transparent);
  color: var(--theme-primary, #4a5c47);
  padding: 10px 12px;
  border-radius: var(--theme-radius, 0px);
  font-size: 13.5px;
  margin-bottom: 12px;
}

/* Form */
.t1-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inputs */
.t1-auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--theme-border, #c4b8a0);
  border-radius: var(--theme-radius, 0px);
  font-size: 14px;
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  color: #2a2118 !important;
  background: var(--theme-bg, #f8f4ee);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.t1-auth-input::placeholder {
  color: var(--theme-muted, #9b8e7a);
}

.t1-auth-input:hover {
  border-color: var(--theme-accent, #b8945a);
}

.t1-auth-input:focus {
  outline: none;
  border-color: var(--theme-accent, #b8945a);
  box-shadow: 0 0 0 3px rgba(184, 148, 90, 0.18);
}

/* Primary button */
.t1-auth-btn {
  width: 100%;
  padding: 13px;
  border: none;
  background: var(--theme-primary, #4a5c47);
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--theme-radius, 0px);
  color: #f8f4ee;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(74, 92, 71, 0.25);
}

.t1-auth-btn:hover {
  background: var(--theme-accent-dark, #5b7057);
  box-shadow: 0 4px 14px rgba(74, 92, 71, 0.3);
}

.t1-auth-btn:active {
  transform: translateY(1px);
}

.t1-auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Links row */
.t1-auth-links {
  text-align: center;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t1-auth-links a {
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 13.5px;
  color: var(--theme-accent, #b8945a);
  text-decoration: none;
  font-weight: 500;
}

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

/* Hide promo bar on auth pages */
.promo-bar.t1-header-bottom-strip {
  display: none !important;
}

/* ── Notice banner (signin / signup top stripe) ──────────────── */
.cs-auth-notice {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cs-auth-notice__inner {
  width: 100%;
  background: color-mix(in srgb, var(--theme-accent, #b8945a) 12%, var(--theme-bg, #f8f4ee));
  border-bottom: 1px solid color-mix(in srgb, var(--theme-accent, #b8945a) 30%, transparent);
  padding: 0.85rem 1.25rem;
}

.cs-auth-notice__text {
  display: block;
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--theme-text-secondary, #6b5f54);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── CrownStore sign-in card ─────────────────────────────────── */
.cs-signin.t1-auth-page {
  padding: 0 !important;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
}

.cs-signin .cs-signin__card.t1-auth-container {
  max-width: 720px;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--theme-radius, 0px);
  box-shadow: 0 8px 32px rgba(42, 33, 24, 0.08);
  margin: 3rem 0;
}

.cs-signin__header {
  margin-bottom: 1.75rem;
  text-align: left;
}

.cs-signin__title {
  font-family: var(--theme-font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: #2a2118 !important;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cs-signin__subtitle {
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--theme-muted, #9b8e7a);
  margin: 0;
}

.cs-signin__error.t1-auth-error {
  text-align: left;
}

.cs-signin__form.t1-auth-form {
  gap: 1.1rem;
}

.cs-signin__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cs-signin__label {
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-text-secondary, #6b5f54);
}

.cs-signin__input.t1-auth-input {
  padding: 0.78rem 0.95rem;
  border-radius: var(--theme-radius, 0px);
  font-size: 0.9375rem;
}

.cs-signin__remember {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--theme-font-family, 'Jost', sans-serif);
  font-size: 0.82rem;
  color: var(--theme-muted, #9b8e7a);
  line-height: 1.45;
  cursor: pointer;
  margin-top: 0.1rem;
}

.cs-signin__remember input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--theme-accent, #b8945a);
}

.cs-signin__submit.t1-auth-btn {
  margin-top: 0.65rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--theme-radius, 0px);
  letter-spacing: 0.12em;
}

.cs-signin .cs-signin__links.t1-auth-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  margin-top: 1.35rem;
  text-align: left;
}

.cs-signin .cs-signin__links.t1-auth-links a {
  font-weight: 600;
}

@media (max-width: 540px) {
  .cs-signin .cs-signin__card.t1-auth-container {
    width: 92%;
    margin: 2rem 0;
  }
}