/* ================================================================
   ALNOTRA AUTH PAGES — /login + /signup (+ /password-reset)
   Dark surface, teal accent, mono labels. Shares tokens with the
   landing (alnotra-landing.css) but owns its own scope so it never
   leaks to other public pages. Hides the default FossBilling
   top-nav/footer so the form stands alone on the dark surface.
   ================================================================ */

body.al-auth > header,
body.al-auth #header-top-sticky,
body.al-auth .master-breadcrumb,
body.al-auth .header-area,
body.al-auth .side-header-menu-active-theme,
body.al-auth .top-header-active-theme,
body.al-auth > footer,
body.al-auth .main-footer-section { display: none !important; }
body.al-auth #main-content,
body.al-auth #main-body,
body.al-auth section[role="main"] {
  padding: 0 !important; margin: 0 !important; background: #0a0a0b !important;
}

body.al-auth {
  margin: 0; padding: 0;
  background: #0a0a0b !important;
  color: #f4f4f5 !important;
  font: 15px/1.55 'Inter', -apple-system, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
  min-height: 100vh;
}
body.al-auth * { box-sizing: border-box; }
body.al-auth a { color: inherit; text-decoration: none; }

.al-auth {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #0f0f11;
  --line: #1c1c20;
  --line-2: #3a3a42;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #5eead4;
  --accent-dark: #4dd3be;
  --danger: #f87171;
  --danger-soft: rgba(248,113,113,0.12);
  --success: #5eead4;
  --success-soft: rgba(94,234,212,0.12);
  scroll-behavior: smooth;
  min-height: 100vh;
}
body.al-auth h1, body.al-auth h2, body.al-auth h3, body.al-auth h4 {
  color: #f4f4f5 !important;
}

/* ── Top brand strip ──────────────────────────────────────────── */
.al-auth .al-auth-topbar {
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.al-auth .al-auth-topbar a { color: var(--muted); font-size: 13px; }
.al-auth .al-auth-topbar a:hover { color: var(--text); }

/* ── Layout ───────────────────────────────────────────────────── */
.al-auth .al-auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1240px; margin: 0 auto;
}
@media (max-width: 960px) {
  .al-auth .al-auth-shell { grid-template-columns: 1fr; }
  .al-auth .al-auth-pitch { display: none; }
}

.al-auth .al-auth-pitch {
  padding: 72px 48px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  gap: 28px;
}
.al-auth .al-auth-pitch-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em;
}
.al-auth .al-auth-pitch-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.al-auth .al-auth-pitch h1 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600; letter-spacing: -.03em;
  line-height: 1.08; margin: 0;
  color: var(--text) !important;
}
.al-auth .al-auth-pitch h1 em {
  font-style: normal; color: var(--muted) !important;
}
.al-auth .al-auth-pitch p {
  color: var(--muted); font-size: 15px; line-height: 1.55;
  max-width: 440px; margin: 0;
}
.al-auth .al-auth-checklist {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.al-auth .al-auth-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text);
}
.al-auth .al-auth-checklist li::before {
  content: ""; margin-top: 6px; flex-shrink: 0;
  width: 14px; height: 14px;
  background: var(--accent); mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='5,12 10,17 19,7'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='5,12 10,17 19,7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.al-auth .al-auth-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  max-width: 420px;
}
.al-auth .al-auth-stat .val {
  font-size: 22px; font-weight: 600;
  letter-spacing: -.02em; color: var(--text);
  font-variant-numeric: tabular-nums;
  display: block; line-height: 1.1;
}
.al-auth .al-auth-stat .lbl {
  font-size: 11px; color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: .08em;
}

/* ── Form column ──────────────────────────────────────────────── */
.al-auth .al-auth-form-col {
  padding: 72px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 600px) { .al-auth .al-auth-form-col { padding: 48px 20px; } }

.al-auth .al-auth-form {
  width: 100%; max-width: 420px; margin: 0 auto;
}
.al-auth .al-auth-form-wide { max-width: 640px; }

.al-auth .al-auth-head h2 {
  font-size: 28px; font-weight: 600; letter-spacing: -.02em;
  margin: 0 0 8px; color: var(--text) !important;
}
.al-auth .al-auth-head p {
  font-size: 14px; color: var(--muted); margin: 0 0 32px;
}

/* Field groups */
.al-auth .al-field { margin-bottom: 16px; }
.al-auth .al-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px;
}
@media (max-width: 560px) { .al-auth .al-field-row { grid-template-columns: 1fr; } }
.al-auth .al-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 6px; font-weight: 500;
}
.al-auth .al-input,
.al-auth input.form-control,
.al-auth select.form-control,
.al-auth select.form-select,
.al-auth textarea.form-control {
  width: 100%; display: block;
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit; font-size: 14px;
  line-height: 1.4;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.al-auth .al-input:focus,
.al-auth .form-control:focus,
.al-auth .form-select:focus {
  border-color: var(--accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(94,234,212,0.15);
  background: #131316 !important;
}
.al-auth .al-input::placeholder,
.al-auth .form-control::placeholder { color: var(--dim); }
.al-auth select.form-control,
.al-auth select.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

/* Row with checkbox + forgot-password link */
.al-auth .al-form-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-size: 13px;
}
.al-auth .al-check,
.al-auth .form-check {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.al-auth .al-check input[type="checkbox"],
.al-auth .form-check-input {
  width: 16px; height: 16px; margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  position: relative;
  flex-shrink: 0;
}
.al-auth .al-check input[type="checkbox"]:checked,
.al-auth .form-check-input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.al-auth .al-check input[type="checkbox"]:checked::after,
.al-auth .form-check-input:checked::after {
  content: ''; position: absolute; inset: 2px;
  background: var(--bg);
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'%3E%3Cpolyline points='4,12 10,18 20,6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'%3E%3Cpolyline points='4,12 10,18 20,6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.al-auth .form-check-label,
.al-auth .al-check span { color: var(--muted); }
.al-auth .al-link-forgot,
.al-auth .al-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.al-auth .al-link-forgot:hover,
.al-auth .al-link:hover { color: var(--accent-dark); }

/* Primary submit */
.al-auth .al-btn-primary,
.al-auth .btn-main {
  width: 100%;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg) !important;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  transition: opacity .15s, transform .15s;
}
.al-auth .al-btn-primary:hover,
.al-auth .btn-main:hover { opacity: .88; }
.al-auth .al-btn-primary:disabled,
.al-auth .btn-main:disabled { opacity: .5; cursor: not-allowed; }
.al-auth .al-btn-primary .btn-arrow { width: 16px; height: 16px; }
.al-auth .al-btn-primary .btn-loader { display: inline-flex; }

/* Divider */
.al-auth .al-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0;
  color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em;
}
.al-auth .al-divider::before,
.al-auth .al-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* Google button */
.al-auth .al-btn-google {
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  transition: border-color .15s, background .15s;
}
.al-auth .al-btn-google:hover {
  border-color: var(--muted);
  background: var(--bg-2);
}
.al-auth .al-btn-google svg { width: 18px; height: 18px; }

/* Footer links under form */
.al-auth .al-auth-foot {
  margin-top: 24px;
  font-size: 13px; color: var(--muted);
  text-align: center;
}
.al-auth .al-auth-foot a { color: var(--accent); font-weight: 500; }
.al-auth .al-auth-foot a:hover { color: var(--accent-dark); }

/* Alerts */
.al-auth .al-alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px; line-height: 1.45;
  margin-bottom: 20px;
  display: none;
}
.al-auth .al-alert.show { display: block; }
.al-auth .al-alert.alert-danger,
.al-auth .al-alert.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.22);
}
.al-auth .al-alert.alert-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(94,234,212,0.22);
}

/* Signup: section titles inside the long form */
.al-auth .al-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.al-auth .al-section-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* Existing Bootstrap grid/form-group shims → neutralize padding bumps */
.al-auth .form-group { margin-bottom: 16px; }
.al-auth .form-row,
.al-auth .row.form-row { margin: 0; gap: 14px; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) {
  .al-auth .form-row,
  .al-auth .row.form-row { grid-template-columns: 1fr; }
}
.al-auth .form-row > [class^="col-"],
.al-auth .row.form-row > [class^="col-"] {
  padding: 0; width: 100%; max-width: 100%; flex: 0 0 100%;
}
.al-auth .form-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.al-auth .form-title h2 {
  font-size: 11px; margin: 0; color: var(--dim) !important;
  font-weight: 500;
}
.al-auth .form-check {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 16px 0;
}
.al-auth .form-check .form-check-label {
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.al-auth .form-check .form-check-label a { color: var(--accent); }

/* Signup-specific phone input-group */
.al-auth .input-group {
  display: flex; gap: 8px;
}
.al-auth .input-group > input { width: 100% !important; }

/* ── Long-form legal pages (/tos, /privacy-policy) ────────────── */
.al-doc {
  max-width: 760px; margin: 0 auto;
  padding: 72px 32px 120px;
  color: var(--text);
}
.al-doc-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.al-doc-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.al-doc-head .eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.al-doc-head h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600; letter-spacing: -.025em;
  line-height: 1.1; margin: 0 0 8px;
  color: var(--text) !important;
}
.al-doc-head .signature {
  font-size: 14px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
}
.al-doc .prose {
  font-size: 15px; line-height: 1.7; color: var(--text);
}
.al-doc .prose > * + * { margin-top: 18px; }
.al-doc .prose h2 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text) !important;
  margin-top: 48px !important;
  margin-bottom: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.al-doc .prose h3 {
  font-size: 17px; font-weight: 600;
  color: var(--text) !important;
  margin-top: 32px !important; margin-bottom: 10px;
}
.al-doc .prose p { color: var(--muted); margin: 0; }
.al-doc .prose ul, .al-doc .prose ol {
  margin: 0; padding-left: 20px;
  color: var(--muted);
}
.al-doc .prose li { margin: 6px 0; }
.al-doc .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.al-doc .prose a:hover { color: var(--accent-dark); }
.al-doc .prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--bg-2);
  padding: 2px 6px; border-radius: 4px;
  color: var(--accent);
}
.al-doc .prose pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
}
.al-doc .prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0 0 0 16px;
  color: var(--muted);
  font-style: italic;
}
.al-doc .prose hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 32px 0;
}
