/* Auth (login / register) and legal (privacy / terms) pages.
   Loaded AFTER landing_convert.css so it inherits the same palette tokens,
   header, footer, buttons and eyebrow. Only page-specific layout lives here. */

/* ---------------------------------------------------------------- Auth */
.auth-main {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 80px;
}

.auth-card {
  width: 100%;
  max-width: 432px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 34px 30px;
  box-shadow: var(--shadow);
}

.auth-card .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
}

.auth-card .logo::before {
  content: "SD";
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(18, 16, 13, 0.82);
  border-radius: 8px;
  background: var(--surface-raised);
  font-size: 11px;
  font-weight: 800;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.auth-card .subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.auth-card .error,
.auth-card .success {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
}

.auth-card .error {
  background: var(--danger-bg);
  border-color: var(--danger-line);
  color: var(--danger-text);
}

.auth-card .success {
  background: var(--accent-soft);
  border-color: #bfe6df;
  color: var(--accent-dark);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.auth-card input::placeholder {
  color: #9aa1ab;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-group .hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.security-note {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.auth-card .btn-primary {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--demo-ink);
  background: var(--demo-ink);
  color: var(--surface-raised);
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 26px rgba(15, 23, 42, 0.16);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-card .btn-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 32px rgba(15, 23, 42, 0.20);
  transform: translateY(-1px);
}

.auth-card .btn-google {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-card .btn-google:hover {
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(31, 27, 20, 0.08);
  transform: translateY(-1px);
}

.google-mark {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--surface-muted);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-dark);
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.footer-link {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.footer-link a {
  color: var(--accent-dark);
  font-weight: 700;
}

.footer-link a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------- Legal */
.legal-main {
  padding: 64px 0 40px;
}

.legal-container {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-container h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.026em;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  max-width: none;
}

.legal-lead {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
}

.legal-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  margin-top: 22px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 800;
  color: var(--text-strong);
}

.legal-section p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .auth-main {
    padding: 40px 18px 64px;
  }

  .auth-card {
    padding: 28px 22px 24px;
  }

  .legal-container h1 {
    font-size: 34px;
  }

  .legal-lead {
    font-size: 16px;
  }
}
