
/* ── RESET ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; background:#f5f6fa; color:#111; min-height:100vh; display:flex; flex-direction:column; }
a { text-decoration:none; color:inherit; }
button { cursor:pointer; border:none; font-family:inherit; background:none; }
input  { font-family:inherit; }

/* ── HEADER ── */
.auth-header {
  background:#131921;
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 24px;
  border-bottom:2px solid #febd69;
  position:sticky; top:0; z-index:100;
}
.auth-logo { font-size:24px; font-weight:900; color:#ff9900; letter-spacing:-1px; cursor:pointer; }
.auth-logo span { font-size:12px; color:#fff; vertical-align:bottom; }
.auth-header-links { display:flex; gap:20px; }
.auth-header-links a { color:#ccc; font-size:13px; transition:color .15s; }
.auth-header-links a:hover { color:#ff9900; }

/* ── PAGE SHELL ── */
.auth-page {
  flex:1;
  display:flex; align-items:flex-start; justify-content:center;
  padding:48px 16px 60px;
}

/* ── CARD ── */
.auth-card {
  width:100%; max-width:440px;
  background:#fff;
  border:1px solid #dde0e8;
  border-radius:12px;
  padding:36px 36px 32px;
  box-shadow:0 4px 24px rgba(0,0,0,.07);
}

/* ── LOGO ICON ── */
.auth-icon { width:52px; height:52px; margin:0 auto 20px; }
.auth-icon svg { width:52px; height:52px; }

/* ── HEADINGS ── */
.auth-title {
  font-size:22px; font-weight:800;
  text-align:center; margin-bottom:10px; color:#111;
  transition:all .3s;
}
.auth-sub {
  font-size:14px; color:#555;
  text-align:center; line-height:1.6; margin-bottom:26px;
}

/* ── USER CHIP (shown after email step) ── */
.user-chip {
  display:flex; align-items:center; gap:10px;
  background:#f5f6fa; border:1px solid #e0e3eb;
  border-radius:8px; padding:10px 14px;
  margin-bottom:18px;
  /* hidden by default */
  display:none;
}
.user-chip.visible { display:flex; }
.uc-avatar {
  width:36px; height:36px; border-radius:50%;
  background:linear-gradient(135deg,#0071dc,#004a9c);
  color:#fff; font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.uc-email { flex:1; font-size:13px; color:#333; font-weight:600; word-break:break-all; }
.uc-change {
  font-size:12px; color:#0071dc; cursor:pointer;
  white-space:nowrap; flex-shrink:0;
  background:none; border:none; padding:0;
  font-family:inherit;
}
.uc-change:hover { text-decoration:underline; }

/* ── FORM GROUPS ── */
.fg { margin-bottom:16px; }
.fg label {
  display:block; font-size:13px; font-weight:600;
  color:#333; margin-bottom:6px;
}
.fg input {
  width:100%;
  border:2px solid #d0d4e0; border-radius:6px;
  padding:11px 14px; font-size:15px; color:#111;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
  background:#fff;
}
.fg input:focus {
  border-color:#0071dc;
  box-shadow:0 0 0 3px rgba(0,113,220,.12);
}
.fg input.input-error { border-color:#d32f2f; }
.fg input:disabled { background:#f5f6fa; color:#aaa; cursor:not-allowed; }

/* error message under field */
.field-error {
  font-size:12px; color:#d32f2f;
  margin-top:5px;
  display:none;  /* hidden by default */
  align-items:center; gap:4px;
}
.field-error.show { display:flex; }

/* ── PASSWORD WRAPPER ── */
.pw-wrap { position:relative; }
.pw-wrap input { padding-right:46px; }
.pw-eye {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:#888; font-size:16px;
  cursor:pointer; padding:4px; line-height:1;
  transition:color .15s;
}
.pw-eye:hover { color:#0071dc; }

/* ── PASSWORD STRENGTH ── */
.pw-strength { margin-top:8px; }
.pw-strength-track {
  height:4px; border-radius:2px;
  background:#e0e3eb; overflow:hidden; margin-bottom:4px;
}
.pw-strength-fill {
  height:100%; border-radius:2px;
  width:0; transition:width .35s, background .35s;
}
.pw-strength-label { font-size:11.5px; color:#888; }

/* ── NAME ROW ── */
.name-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* ── COLLAPSIBLE SECTIONS ── */
/*
  Sections that show/hide use a max-height animation.
  JS adds/removes .expanded class.
  overflow:hidden clips content while animating.
*/
.auth-section {
  overflow:hidden;
  max-height:0;
  opacity:0;
  transition: max-height .45s cubic-bezier(.4,0,.2,1),
              opacity .35s ease,
              margin .3s ease;
  margin-top:0;
}
.auth-section.expanded {
  max-height:900px;   /* large enough for any content */
  opacity:1;
}

/* ── PRIVACY NOTE ── */
.auth-privacy {
  font-size:12.5px; color:#555; line-height:1.6;
  margin-bottom:18px;
}
.auth-privacy a { color:#0071dc; }
.auth-privacy a:hover { text-decoration:underline; }

/* ── ALERT ── */
.auth-alert {
  display:none; align-items:center; gap:8px;
  padding:11px 14px; border-radius:6px;
  font-size:13px; margin-bottom:16px;
}
.auth-alert.show  { display:flex; }
.auth-alert.success { background:#e6f4ea; border:1px solid #a8d5b5; color:#1a7a3a; }
.auth-alert.error   { background:#fce8e8; border:1px solid #f5b8b8; color:#d32f2f; }
.auth-alert.info    { background:#e3f2ff; border:1px solid #90caf9; color:#0a1f5c; }

/* ── CONTINUE / CTA BUTTON ── */
.btn-primary {
  width:100%;
  background:#0071dc; color:#fff;
  font-size:16px; font-weight:700;
  padding:13px 0; border-radius:28px;
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-bottom:14px;
  transition:background .2s, transform .1s, box-shadow .2s;
  position:relative; overflow:hidden;
}
.btn-primary:hover  { background:#005baf; box-shadow:0 4px 12px rgba(0,113,220,.3); }
.btn-primary:active { transform:scale(.98); }
.btn-primary:disabled { background:#90b8e0; cursor:not-allowed; transform:none; box-shadow:none; }

/* loading spinner inside button */
.btn-spinner {
  width:18px; height:18px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff; border-radius:50%;
  animation:spin .65s linear infinite;
  display:none; flex-shrink:0;
}
.btn-primary.loading .btn-spinner  { display:block; }
.btn-primary.loading .btn-label    { opacity:.7; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── SECONDARY / OUTLINE BUTTON ── */
.btn-secondary {
  width:100%; background:#fff; color:#0071dc;
  font-size:14px; font-weight:700;
  padding:11px 0; border-radius:28px;
  border:2px solid #0071dc;
  transition:background .2s; margin-bottom:12px;
}
.btn-secondary:hover { background:#f0f6ff; }

/* ── DIVIDER ── */
.auth-divider {
  display:flex; align-items:center; gap:12px;
  margin:18px 0; color:#bbb; font-size:12px;
}
.auth-divider::before, .auth-divider::after {
  content:''; flex:1; height:1px; background:#e0e3eb;
}

/* ── SOCIAL BUTTONS ── */
.btn-social {
  width:100%;
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:11px 0; border-radius:28px;
  border:1px solid #d0d4e0;
  font-size:14px; font-weight:600; color:#333; background:#fff;
  transition:border-color .2s, box-shadow .2s;
  margin-bottom:10px;
}
.btn-social:hover { border-color:#0071dc; box-shadow:0 2px 8px rgba(0,113,220,.1); }
.btn-social img   { width:20px; height:20px; }

/* ── FORGOT LINK ── */
.auth-forgot {
  text-align:center; margin-top:10px;
  font-size:13px; color:#0071dc;
  cursor:pointer; background:none; border:none;
  padding:0; font-family:inherit; width:100%;
}
.auth-forgot:hover { text-decoration:underline; }

/* ── TERMS CHECKBOX ── */
.terms-row {
  display:flex; align-items:flex-start; gap:10px;
  margin-bottom:18px;
}
.terms-row input[type="checkbox"] { margin-top:3px; accent-color:#0071dc; flex-shrink:0; }
.terms-row label { font-size:13px; color:#555; line-height:1.55; cursor:pointer; }
.terms-row label a { color:#0071dc; }
.terms-row label a:hover { text-decoration:underline; }

/* ── SMALL LINK ── */
.auth-link-row {
  text-align:center; font-size:13px; color:#555;
  margin-top:14px;
}
.auth-link-row button {
  color:#0071dc; font-weight:700; font-size:13px;
  background:none; border:none; cursor:pointer;
  font-family:inherit; padding:0;
}
.auth-link-row button:hover { text-decoration:underline; }

/* ── BUSINESS BOX ── */
.biz-box {
  width:100%; max-width:440px;
  margin-top:16px;
  background:#f0f4ff; border:1px solid #d0daff;
  border-radius:10px; padding:24px;
  text-align:center;
}
.biz-box h3         { font-size:18px; font-weight:800; margin-bottom:4px; }
.biz-box h3 span    { color:#0071dc; }
.biz-box p          { font-size:13px; color:#555; margin-bottom:14px; }
.btn-biz {
  display:inline-block; padding:10px 24px;
  border-radius:28px; border:2px solid #333;
  font-size:14px; font-weight:700; color:#333; background:#fff;
  cursor:pointer; transition:all .2s;
}
.btn-biz:hover { background:#333; color:#fff; }

/* ── FOOTER ── */
.auth-footer {
  background:#f5f6fa; border-top:1px solid #e0e3eb;
  padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px;
}
.auth-footer p { font-size:12px; color:#888; }
.auth-footer-links { display:flex; gap:16px; flex-wrap:wrap; }
.auth-footer-links a { font-size:12px; color:#555; transition:color .15s; }
.auth-footer-links a:hover { color:#0071dc; }

/* ── RESPONSIVE ── */
@media(max-width:480px) {
  .auth-card    { padding:24px 18px; border-radius:0; border-left:none; border-right:none; }
  .auth-page    { padding:0 0 40px; }
  .name-row     { grid-template-columns:1fr; }
}


/* ════════ OPTION C — Ghost link with orange accent house ════════ */
.btn-home-c{
  width:100%;display:flex;align-items:center;justify-content:center;gap:10px;
  padding:13px 0;border-radius:28px;
  background:#fff;color:#0f1428;border:1.5px solid #e4e8f3;
  font-size:14px;font-weight:700;
  transition:border-color .2s,box-shadow .2s,transform .15s;
}
.btn-home-c .house{
  width:26px;height:26px;border-radius:8px;flex-shrink:0;
  background:linear-gradient(135deg,#ff9900,#ff7a00);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:12px;
  box-shadow:0 3px 8px rgba(255,140,0,.35);
}
.btn-home-c:hover{border-color:#ff9900;box-shadow:0 6px 16px rgba(255,140,0,.16);transform:translateY(-2px);}
