/* =============================================================
   Auth Marketing Layout
   Two-column page shell: brand column (left) + form column (right)
   ============================================================= */

body#auth-mkt-page {
  background: var(--mkt-bg);
  font-family: var(--font-marketing);
  margin: 0;
}

.auth-mkt-wrap {
  display: flex;
  min-height: 100vh;
}

/* -----------------------------------------------
   Brand column — gradient background, white text
   ----------------------------------------------- */

.auth-brand-col {
  flex: 0 0 44%;
  background: var(--grad-footer);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  color: var(--text-on-primary);
}

.auth-brand-col__brand {
  margin-bottom: 52px;
}

.auth-brand-col__logo {
  display: block;
  overflow: hidden;
  height: 68px;
}

.auth-brand-col__logo-img {
  height: 100px;
  width: auto;
  max-width: 260px;
}

.auth-brand-col__eyebrow {
  font-size: 12px;
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 0;
}

.auth-brand-col__headline {
  font-family: var(--font-marketing);
  font-size: 36px;
  font-weight: var(--font-bold);
  color: var(--text-on-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.auth-brand-col__headline em {
  font-style: normal;
  font-family: var(--font-serif);
  font-weight: var(--font-normal);
}

.auth-brand-col__tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 44px;
}

.auth-brand-col__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-brand-col__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.auth-brand-col__features .feat-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-col__features .feat-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--text-on-primary);
  border-top: none;
  border-left: none;
  transform: rotate(40deg) translate(-1px, -1px);
}

/* -----------------------------------------------
   Form column — sand background, centered card
   ----------------------------------------------- */

.auth-form-col {
  flex: 1;
  background: var(--mkt-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

/* -----------------------------------------------
   Form card
   ----------------------------------------------- */

.auth-form-card {
  background: var(--mkt-surface);
  border-radius: var(--radius-card-mkt);
  box-shadow: var(--shadow-card-mkt);
  padding: 44px 44px 36px;
  width: 100%;
  max-width: 440px;
  text-align: left;
}

.auth-form-card--wide {
  max-width: 560px;
}

.auth-form-card h1,
.auth-form-card h2 {
  font-family: var(--font-marketing);
  font-size: 24px;
  font-weight: var(--font-bold);
  color: var(--mkt-text);
  margin-bottom: 28px;
  text-transform: none;
  letter-spacing: 0;
}

.auth-form-card .field {
  max-width: none;
  margin-bottom: 20px;
}

.auth-form-card .field label {
  display: block;
  font-family: var(--font-marketing);
  font-size: 14px;
  font-weight: var(--font-medium);
  color: var(--mkt-text);
  text-align: left;
  margin-bottom: 6px;
}

.auth-form-card .field input[type="text"],
.auth-form-card .field input[type="email"],
.auth-form-card .field input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px;
  font-family: var(--font-marketing);
  font-size: 15px;
  color: var(--mkt-text);
  background-color: #fff;
  border: 1px solid var(--mkt-border-input);
  border-radius: var(--radius-md);
  appearance: none;
  -webkit-appearance: none;
}

.auth-form-card .field input:focus {
  border-color: #006dff; /* TODO: consider token — close to --color-bright-blue-hover (#0072ff) but not exact */
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 109, 255, 0.12); /* TODO: consider token */
}

/* Auth card submit pill-primary button */
.auth-form-card .pill-primary {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  padding: 14px 24px;
}

/* Google button in auth card */
.auth-form-card .auth-google-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  gap: 10px;
  font-size: 15px;
}

.auth-form-card .auth-google-btn .google-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Divider between primary action and OAuth */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--mkt-text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mkt-border);
}

/* Bottom links area */
.auth-card-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--mkt-text-body);
  text-align: center;
}

.auth-card-links a {
  color: var(--mkt-text-blue);
  text-decoration: none;
}

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

.auth-legal-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-legal-links a {
  font-size: 12px;
  color: var(--mkt-text-muted);
  text-decoration: none;
}

.auth-legal-links a:hover {
  color: var(--mkt-text-blue);
}

/* Resend verification notice */
.auth-resend-notice {
  background: #fff8e6; /* TODO: consider token */
  border: 1px solid #f0c060; /* TODO: consider token */
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  text-align: left;
}

.auth-resend-notice p {
  color: #7d5c00; /* TODO: consider token */
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

/* Required field marker */
span.required {
  color: #ef4444; /* TODO: consider token — close to --color-error-dark (#dc2626) but not exact */
  margin-left: 2px;
}

/* Disclaimer text (signup) */
.auth-disclaimer {
  font-size: 13px;
  color: var(--mkt-text-muted);
  margin-top: 10px;
  margin-bottom: 0;
  font-style: italic;
  text-align: center;
  line-height: 1.4;
}

/* -----------------------------------------------
   Intro paragraph (below h1, above form)
   ----------------------------------------------- */

.auth-form-card h1 + .auth-form-intro {
  margin-top: -14px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--mkt-text-body);
  line-height: 1.55;
}

/* -----------------------------------------------
   Status page variant (verify-email, etc.)
   ----------------------------------------------- */

.auth-form-card--status {
  text-align: center;
}

.auth-form-card--status h1 {
  margin-bottom: 12px;
}

.auth-form-card--status .pill-primary {
  display: block;
  text-decoration: none;
}

/* Status icon — colored circle with inline SVG */
.auth-status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-status-icon--success { background: var(--color-success-light); }
.auth-status-icon--info    { background: #dbeafe; /* TODO: consider token */ }
.auth-status-icon--warning { background: #fef3c7; /* TODO: consider token */ }
.auth-status-icon--error   { background: #fee2e2; /* TODO: consider token */ }

.auth-status-message {
  font-size: 15px;
  color: var(--mkt-text-body);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* -----------------------------------------------
   Disabled pill-ghost state (for onboarding flows)
   ----------------------------------------------- */

.pill-ghost--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* -----------------------------------------------
   Responsive: mobile hides brand col, stacks form
   ----------------------------------------------- */

@media (max-width: 768px) {
  .auth-mkt-wrap {
    flex-direction: column;
  }

  .auth-brand-col {
    display: none;
  }

  .auth-form-col {
    padding: 32px 20px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 48px;
  }

  .auth-form-card {
    padding: 32px 24px 28px;
    max-width: 100%;
    border-radius: 12px;
  }
}
