/* Auth pages - marketing layout */

.auth-body {
  padding-bottom: 0;
}

.auth-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.auth-field-error {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.auth-field-error[hidden] {
  display: none;
}

.password-field-wrap {
  position: relative;
  display: block;
}

.password-field-wrap input {
  padding-right: 2.85rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
}

.password-toggle-icon {
  display: none;
  flex-shrink: 0;
}

.password-toggle-icon.is-visible {
  display: block;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--site-navy, #142952);
  background: #f1f5f9;
}

.auth-page {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: 48px;
}

.auth-hero {
  margin-bottom: 40px;
}

.auth-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(300px, 420px);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
}

.auth-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.15;
  color: var(--site-navy, #142952);
}

.auth-hero-lead {
  margin: 0 0 20px;
  color: var(--site-muted);
  line-height: 1.55;
  max-width: 28rem;
}

.auth-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--site-text);
}

.auth-feature-list img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.auth-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
}

.auth-phone-mockup {
  position: relative;
  width: min(240px, 28vw);
  padding: 14px 11px 18px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 3px solid #334155;
  box-shadow:
    0 28px 56px rgba(15, 41, 82, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.auth-phone-mockup::before {
  content: "";
  display: block;
  width: 64px;
  height: 7px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #475569;
}

.auth-phone-screen {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  line-height: 0;
}

.auth-phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.auth-form-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
  justify-content: center;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-tab {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--site-muted);
  font-weight: 600;
  border: 1px solid var(--site-border, #e2e8f0);
  background: #fff;
}

.auth-tab.is-active {
  color: #fff;
  background: var(--site-navy, #142952);
  border-color: var(--site-navy, #142952);
}

.auth-card {
  position: relative;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 41, 82, 0.08);
  border: 1px solid var(--site-border, #e2e8f0);
}

.auth-card-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-card-badge-pro {
  background: #ecfdf5;
  color: #047857;
}

.auth-card-badge-secure {
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--site-navy, #142952);
}

.auth-card-lead {
  margin: 0 0 18px;
  color: var(--site-muted);
  line-height: 1.5;
}

.auth-card-lead-tight {
  margin-top: 16px;
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--site-border, #e2e8f0);
  font: inherit;
  background: #fff;
}

.auth-form label.auth-checkbox-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0;
  width: fit-content;
  max-width: 100%;
}

.auth-checkbox-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  flex-shrink: 0;
}

.auth-link {
  color: var(--site-navy, #142952);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.auth-checkbox input {
  width: auto;
  margin: 0;
}

.auth-oauth {
  margin-top: 18px;
}

.auth-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--site-muted);
  font-size: 0.88rem;
}

.auth-oauth-divider::before,
.auth-oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--site-border, #e2e8f0);
}

.auth-oauth-divider span {
  flex-shrink: 0;
}

.auth-oauth-buttons {
  display: grid;
  gap: 10px;
}

.auth-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--site-border, #e2e8f0);
  background: #fff;
  color: var(--site-text);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.auth-oauth-btn:hover {
  background: #f8fafc;
}

.auth-oauth-apple {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.auth-oauth-apple:hover {
  background: #1e293b;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  line-height: 1.5;
}

.auth-alert strong {
  display: block;
  margin-bottom: 4px;
}

.auth-alert-link {
  margin: 10px 0 0;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.auth-benefit-card {
  padding: 20px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--site-border, #e2e8f0);
  box-shadow: 0 10px 24px rgba(15, 41, 82, 0.05);
}

.auth-benefit-card img {
  display: block;
  margin-bottom: 10px;
}

.auth-benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--site-navy, #142952);
}

.auth-benefit-card p {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .auth-hero-grid {
    grid-template-columns: 1fr;
  }

  .auth-hero-copy,
  .auth-hero-visual {
    display: none;
  }

  .auth-form-column {
    width: 100%;
  }

  .auth-page {
    padding-top: 12px;
  }

  .auth-benefits {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-benefits {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .auth-hero {
    min-height: 480px;
  }
}

.auth-legal-note {
  margin-top: 16px;
  color: var(--site-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.auth-legal-note a {
  color: var(--site-green-700);
}
