/* Business sign in / sign up. Bookings brand: #00388b primary, #0A58CA secondary (as on the landing page). */
:root {
  --au-primary: #00388b;
  --au-primary-hover: #0A58CA;
  --au-secondary: #0A58CA;
  --au-secondary-hover: #0848A8;
  --au-accent: #F8B940;
  --au-bg: #F5F7FB;
  --au-surface: #FFFFFF;
  --au-raised: #EEF2F7;
  --au-text: #0F172A;
  --au-text-2: #334155;
  --au-muted: #64748B;
  --au-placeholder: #94A3B8;
  --au-border: #E2E8F0;
  --au-tint: rgba(10, 88, 202, .05);
  --au-error: #DC2626;
  --au-success: #15803D;
  --au-ring: 0 0 0 3px rgba(10, 88, 202, 0.2);
  --au-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --au-body: "Inter", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }

body.au-body {
  background: var(--au-bg);
  color: var(--au-text);
  font-family: var(--au-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--au-secondary); text-decoration: none; }
a:hover { color: var(--au-secondary-hover); text-decoration: underline; }

.au-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .au-shell { grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); }
}

/* ---------- Brand panel ---------- */
.au-aside {
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  padding: 40px 48px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(10, 88, 202, .55), transparent 60%),
    radial-gradient(700px 600px at -20% 110%, rgba(10, 88, 202, .35), transparent 60%),
    linear-gradient(160deg, #081C3A 0%, var(--au-primary) 55%, #123A73 100%);
  flex-direction: column;
}

@media (min-width: 1024px) { .au-aside { display: flex; } }

.au-aside-logo img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }

.au-aside-copy { margin-top: auto; max-width: 440px; }

.au-aside h2 {
  font-family: var(--au-display);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}

.au-aside p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 16px; }

.au-aside-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }

.au-aside-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .9); }

.au-aside-points svg { flex: 0 0 20px; margin-top: 1px; color: #7DB2FF; }

.au-aside-shot {
  margin: 36px -48px -40px 0;
  margin-top: 36px;
  border-radius: 14px 0 0 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(4, 14, 32, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  border-right: 0;
  border-bottom: 0;
  max-height: 38vh;
}

.au-aside-shot img { display: block; width: 100%; height: auto; }

/* ---------- Main column ---------- */
.au-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 16px 28px;
}

@media (min-width: 640px) { .au-main { padding: 32px 32px 32px; } }

.au-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.au-topbar-logo img { height: 28px; width: auto; display: block; }

@media (min-width: 1024px) { .au-topbar-logo { visibility: hidden; } }

.au-topbar-link { font-size: 14px; color: var(--au-text-2); }

.au-topbar-link a { font-weight: 600; }

.au-card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 36px 0 24px;
}

.au-card.au-card-wide { max-width: 620px; }

.au-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--au-secondary);
  margin: 0 0 8px;
}

.au-title {
  font-family: var(--au-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--au-text);
}

@media (min-width: 640px) { .au-title { font-size: 32px; } }

.au-sub { margin: 0 0 24px; color: var(--au-muted); }

.au-footer { text-align: center; font-size: 13px; color: var(--au-muted); }

/* ---------- Form controls ---------- */
.au-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 560px) { .au-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.au-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.au-field.au-span { grid-column: 1 / -1; }

.au-label { font-size: 13px; font-weight: 600; color: var(--au-text-2); }

.au-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

.au-label-row a, .au-link-btn { font-size: 13px; font-weight: 600; }

.au-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--au-text);
  background: var(--au-surface);
  border: 1px solid var(--au-border);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.au-input::placeholder { color: var(--au-placeholder); }

.au-input:focus { outline: none; border-color: var(--au-secondary); box-shadow: var(--au-ring); }

.au-input[readonly] { background: var(--au-raised); color: var(--au-text-2); }

.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}

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

.au-btn:disabled { opacity: .65; cursor: not-allowed; }

.au-btn-primary { background: var(--au-primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(14, 44, 89, .5); }

.au-btn-primary:hover:not(:disabled) { background: var(--au-primary-hover); }

.au-btn-primary:focus-visible, .au-btn-ghost:focus-visible { outline: none; box-shadow: var(--au-ring); }

.au-btn-ghost { background: var(--au-surface); color: var(--au-text); border-color: var(--au-border); }

.au-btn-ghost:hover:not(:disabled) { background: var(--au-raised); }

.au-link-btn { background: none; border: 0; padding: 0; color: var(--au-secondary); cursor: pointer; font: inherit; font-weight: 600; }

.au-link-btn:hover { text-decoration: underline; }

.au-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: au-spin .7s linear infinite;
  display: none;
}

.au-btn.is-loading .au-spinner { display: inline-block; }

@keyframes au-spin { to { transform: rotate(360deg); } }

.au-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--au-placeholder);
}

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

.au-google { display: flex; justify-content: center; min-height: 44px; }

.au-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--au-text-2); }

.au-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--au-secondary); flex: 0 0 18px; }

.au-alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--au-text-2); }

.au-alt a { font-weight: 600; }

.au-notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0 0 16px;
  background: #FEF3C7;
  color: #92400E;
}

.au-notice a, .au-notice .au-link-btn { color: inherit; text-decoration: underline; font-weight: 700; }

.au-notice[hidden] { display: none; }

.error-message { color: var(--au-error); font-size: 13px; margin: 0; order: 3; }

.au-pw-rules { list-style: none; margin: 4px 0 0; padding: 0; display: none; flex-wrap: wrap; gap: 6px; }

.au-pw-rules.is-visible { display: flex; }

.au-pw-rules li {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FEE2E2;
  color: #991B1B;
}

.au-pw-rules li.is-met { background: #DCFCE7; color: var(--au-success); }

.au-pane[hidden] { display: none; }

/* ---------- Plan picker ---------- */
.au-plans { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }

.au-plans legend { padding: 0; margin: 0 0 10px; }

.au-plan-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.au-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 12px;
  border: 1.5px solid var(--au-border);
  border-radius: 12px;
  background: var(--au-surface);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-width: 0;
}

.au-plan:hover { border-color: #9DBDEB; }

.au-plan input { position: absolute; opacity: 0; pointer-events: none; }

.au-plan-name { font-family: var(--au-display); font-weight: 700; font-size: 15px; color: var(--au-text); }

.au-plan-price { font-weight: 700; font-size: 17px; color: var(--au-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.au-plan-price small { font-size: 12px; font-weight: 500; color: var(--au-muted); }

.au-plan-note { font-size: 12px; color: var(--au-muted); }

.au-plan-tag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--au-accent);
  color: #3B2A05;
}

.au-plan:has(input:checked) {
  border-color: var(--au-secondary);
  background: var(--au-tint);
  box-shadow: var(--au-ring);
}

.au-plan:has(input:focus-visible) { box-shadow: var(--au-ring); }

.au-plan.is-active { border-color: var(--au-secondary); background: var(--au-tint); box-shadow: var(--au-ring); }

.au-plan-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--au-border);
  background: var(--au-surface);
}

.au-plan.is-active .au-plan-check { border-color: var(--au-secondary); background: var(--au-secondary); box-shadow: inset 0 0 0 3px #fff; }

.au-plan-tag ~ .au-plan-check { top: 14px; }

.au-plan-detail {
  margin: 12px 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--au-surface);
  border: 1px solid var(--au-border);
}

.au-plan-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }

.au-plan-detail-head strong { font-family: var(--au-display); font-size: 14px; }

.au-trial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #DCFCE7;
  color: var(--au-success);
}

.au-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px 16px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 560px) { .au-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.au-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--au-text-2); }

.au-features svg { flex: 0 0 16px; margin-top: 2px; color: var(--au-success); }

.au-features[hidden] { display: none; }

@media (max-width: 479px) {
  .au-plan { padding: 12px 10px 10px; }
  .au-plan-price { font-size: 15px; }
  .au-plan-note { display: none; }
  .au-plan-check { display: none; }
}

.au-referral-toggle { display: inline-flex; align-items: center; gap: 6px; }

#card-element { padding: 13px 14px; border: 1px solid var(--au-border); border-radius: 10px; background: var(--au-surface); }

/* SweetAlert font match */
.swal2-popup { font-family: var(--au-body); border-radius: 16px; }
.swal2-styled.swal2-confirm { background: var(--au-primary) !important; border-radius: 10px !important; }
