/* SF24 Test Auth Pages — Login / Signup / Forgot Password */

:root {
  --tau-ac:    #7c3aed;
  --tau-ac2:   #f58529;
  --tau-ag:    rgba(124,58,237,.1);
  --tau-bg:    #faf9f5;
  --tau-bd:    #e7e7eb;
  --tau-tx:    #1a1033;
  --tau-ts:    #6b7280;
  --tau-tm:    #9ca3af;
  --tau-fh:    'Rubik','Helvetica Neue',Arial,sans-serif;
}

.sf24-tauth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: #F8F9FB; position: relative; font-family: 'Nunito', -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.sf24-tauth-wrap::before, .sf24-tauth-wrap::after { content: none; }

.sf24-tauth-card { position: relative; width: 100%; max-width: 460px; padding: 18px 36px 28px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,.7); border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(91,33,182,.25), 0 0 0 1px rgba(124,58,237,.06); overflow: hidden; z-index: 1; }
.sf24-tauth-bg { display: none; }
.sf24-tauth-card > * { position: relative; z-index: 1; }

.sf24-tauth-head { text-align: center; margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.sf24-tauth-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 8px; width: 100%; text-align: center; }
.sf24-tauth-logo { display: flex; align-items: center; justify-content: center; line-height: 0; margin: 0 auto; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.sf24-tauth-logo:hover { transform: translateY(-2px) scale(1.02); }
.sf24-tauth-logo picture { display: flex; align-items: center; justify-content: center; }
.sf24-tauth-logo img { display: block; margin: 0 auto; max-width: 200px; max-height: 78px; width: auto; height: auto; object-fit: contain; }
.sf24-tauth-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--tau-ac), #6d28d9 60%, var(--tau-ac2)); color: #fff; box-shadow: 0 10px 24px -8px rgba(124,58,237,.55); margin: 0 auto; }
.sf24-tauth-icon svg { display: block; width: 20px; height: 20px; }
@media (max-width: 520px) {
  .sf24-tauth-logo img { max-width: 170px; max-height: 66px; }
  .sf24-tauth-icon { width: 40px; height: 40px; }
  .sf24-tauth-icon svg { width: 18px; height: 18px; }
  .sf24-tauth-brand { gap: 8px; margin-bottom: 8px; }
}
.sf24-tauth-head h1 { font-family: var(--tau-fh); margin: 0 0 8px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--tau-tx); line-height: 1.15; }
.sf24-tauth-head p { margin: 0; font-size: 13.5px; color: var(--tau-ts); line-height: 1.5; max-width: 340px; margin: 0 auto; }

/* Perks list (signup only) */
.sf24-tauth-perks { list-style: none; margin: 0 0 22px; padding: 14px 16px; background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(16,185,129,.02)); border: 1px solid rgba(16,185,129,.18); border-radius: 12px; display: flex; flex-direction: column; gap: 7px; }
.sf24-tauth-perks li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #065f46; font-weight: 600; }
.sf24-tauth-perk-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 10px; font-weight: 900; flex-shrink: 0; box-shadow: 0 3px 8px -2px rgba(16,185,129,.4); }

/* Form */
.sf24-tauth-form { display: flex; flex-direction: column; gap: 14px; }
.sf24-tauth-field { display: flex; flex-direction: column; gap: 6px; }
.sf24-tauth-field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sf24-tauth-field label { font-size: 12.5px; font-weight: 700; color: var(--tau-tx); letter-spacing: -.005em; }
.sf24-tauth-required { color: #ef4444; font-weight: 900; font-size: 11px; }
.sf24-tauth-optional { color: var(--tau-tm); font-weight: 500; font-size: 11px; }
.sf24-tauth-forgot-link { font-size: 12px; font-weight: 700; color: var(--tau-ac) !important; text-decoration: none !important; transition: color .15s; }
.sf24-tauth-forgot-link:hover { color: #6d28d9 !important; text-decoration: underline !important; }

.sf24-tauth-field input { width: 100%; padding: 13px 14px; background: #fff; border: 1.5px solid #d4d6dd; border-radius: 11px; font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--tau-tx); outline: none; box-sizing: border-box; transition: border-color .2s, box-shadow .2s; box-shadow: inset 0 1px 2px rgba(15,15,17,.04); letter-spacing: -.005em; }
.sf24-tauth-field input::placeholder { color: var(--tau-tm); font-weight: 400; }
.sf24-tauth-field input:hover { border-color: #9ca3af; }
.sf24-tauth-field input:focus { border-color: var(--tau-ac); box-shadow: 0 0 0 3px rgba(124,58,237,.14), inset 0 1px 2px rgba(15,15,17,.03); background: #fff; }

/* Password input with show/hide toggle */
.sf24-tauth-pwd-wrap { position: relative; }
.sf24-tauth-pwd-wrap input { padding-right: 44px; }
.sf24-tauth-pwd-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 0; border-radius: 8px; color: var(--tau-tm); cursor: pointer; transition: all .15s; }
.sf24-tauth-pwd-toggle:hover { background: var(--tau-bg); color: var(--tau-ac); }
.sf24-tauth-pwd-toggle.is-shown { color: var(--tau-ac); }

/* Password strength meter */
.sf24-tauth-pwd-meter { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sf24-tauth-pwd-meter[hidden] { display: none !important; }
.sf24-tauth-pwd-bar { flex: 1; height: 4px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.sf24-tauth-pwd-bar > span { display: block; height: 100%; border-radius: 4px; transition: width .3s ease, background .3s ease; }
.sf24-tauth-pwd-meter[data-strength="0"] .sf24-tauth-pwd-bar > span,
.sf24-tauth-pwd-meter[data-strength="1"] .sf24-tauth-pwd-bar > span { background: #ef4444; }
.sf24-tauth-pwd-meter[data-strength="2"] .sf24-tauth-pwd-bar > span { background: #f59e0b; }
.sf24-tauth-pwd-meter[data-strength="3"] .sf24-tauth-pwd-bar > span { background: #fbbf24; }
.sf24-tauth-pwd-meter[data-strength="4"] .sf24-tauth-pwd-bar > span,
.sf24-tauth-pwd-meter[data-strength="5"] .sf24-tauth-pwd-bar > span { background: #10b981; }
.sf24-tauth-pwd-label { font-size: 10.5px; font-weight: 800; color: var(--tau-ts); letter-spacing: .04em; text-transform: uppercase; min-width: 56px; text-align: right; }

/* Custom checkbox */
.sf24-tauth-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; padding: 2px 0; }
.sf24-tauth-check input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.sf24-tauth-check-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--tau-bd); background: #fff; flex-shrink: 0; transition: all .2s cubic-bezier(.34,1.56,.64,1); margin-top: 1px; }
.sf24-tauth-check-mark svg { opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.sf24-tauth-check input:checked ~ .sf24-tauth-check-mark { background: var(--tau-ac); border-color: var(--tau-ac); }
.sf24-tauth-check input:checked ~ .sf24-tauth-check-mark svg { opacity: 1; transform: scale(1); }
.sf24-tauth-check-text { font-size: 13px; color: var(--tau-ts); line-height: 1.45; }
.sf24-tauth-check-text a { color: var(--tau-tx); text-decoration: underline; text-decoration-color: rgba(124,58,237,.4); font-weight: 600; }
.sf24-tauth-check-text a:hover { text-decoration-color: var(--tau-ac); }

/* Message box (errors / success) */
.sf24-tauth-msg { padding: 11px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.sf24-tauth-msg[hidden] { display: none !important; }
.sf24-tauth-msg.is-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.sf24-tauth-msg.is-success { background: rgba(16,185,129,.08); color: #065f46; border: 1px solid rgba(16,185,129,.3); }

/* Success state (forgot password) */
.sf24-tauth-success { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 18px; background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(16,185,129,.02)); border: 1px solid rgba(16,185,129,.3); border-radius: 14px; text-align: center; animation: sf24-tauth-success-in .4s cubic-bezier(.34,1.56,.64,1); }
.sf24-tauth-success[hidden] { display: none !important; }
@keyframes sf24-tauth-success-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.sf24-tauth-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 22px; font-weight: 900; box-shadow: 0 8px 20px -4px rgba(16,185,129,.45); margin-bottom: 4px; }
.sf24-tauth-success strong { font-family: var(--tau-fh); font-size: 16px; font-weight: 900; color: #065f46; letter-spacing: -.01em; }
.sf24-tauth-success span { font-size: 13px; color: #047857; line-height: 1.5; max-width: 280px; }

/* Submit button — animated lila→orange gradient with pulse + shine */
.sf24-tauth-submit { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 20px; background: linear-gradient(135deg, var(--tau-ac) 0%, var(--tau-ac2) 100%); color: #fff !important; border: 0; border-radius: 13px; font-family: var(--tau-fh); font-size: 14.5px; font-weight: 900; text-decoration: none !important; cursor: pointer; transition: transform .25s, box-shadow .3s; position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 8px 22px -6px rgba(124,58,237,.5); animation: sf24-tauth-pulse 2.6s ease-in-out infinite; margin-top: 6px; outline: none; }
.sf24-tauth-submit::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.42) 50%, transparent 70%); transform: skewX(-22deg); pointer-events: none; z-index: 1; animation: sf24-tauth-shine 3.2s cubic-bezier(.55,0,.2,1) infinite .8s; }
.sf24-tauth-submit > * { position: relative; z-index: 2; }
.sf24-tauth-submit svg { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.sf24-tauth-submit:hover:not(:disabled):not(.is-loading) { animation-play-state: paused; transform: translateY(-2px) scale(1.01); box-shadow: 0 16px 36px -10px rgba(124,58,237,.6); }
.sf24-tauth-submit:hover:not(:disabled):not(.is-loading) svg { transform: translateX(4px); }
.sf24-tauth-submit:hover::before { animation-duration: 1.4s; }
.sf24-tauth-submit:active { transform: translateY(0) scale(.99); }
.sf24-tauth-submit:disabled, .sf24-tauth-submit.is-loading { animation: none; cursor: wait; opacity: .85; }
.sf24-tauth-submit.is-loading::before { display: none; }
.sf24-tauth-submit.is-loading::after { content: ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sf24-tauth-spin .7s linear infinite; }
.sf24-tauth-submit.is-loading svg { opacity: 0; }
@keyframes sf24-tauth-pulse { 0%,100% { box-shadow: 0 8px 22px -6px rgba(124,58,237,.5); } 50% { box-shadow: 0 12px 30px -6px rgba(124,58,237,.65), 0 0 0 4px rgba(124,58,237,.08); } }
@keyframes sf24-tauth-shine { 0% { left: -60%; } 60%,100% { left: 120%; } }
@keyframes sf24-tauth-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Footer (alt-action link) */
.sf24-tauth-foot { padding-top: 22px; margin-top: 18px; border-top: 1px solid var(--tau-bd); text-align: center; }
.sf24-tauth-foot p { margin: 0; font-size: 13px; color: var(--tau-ts); }
.sf24-tauth-foot a { color: var(--tau-ac); font-weight: 800; text-decoration: none; transition: color .15s; }
.sf24-tauth-foot a:hover { color: #6d28d9; text-decoration: underline; }

/* Trust line at the very bottom */
.sf24-tauth-trust { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 14px 0 0; font-size: 11px; color: var(--tau-tm); flex-wrap: wrap; }
.sf24-tauth-trust svg { color: #059669; }
.sf24-tauth-trust strong { color: #065f46; font-weight: 800; }

/* Logged-in state */
.sf24-tauth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.sf24-tauth-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; background: transparent; color: var(--tau-ts) !important; border: 1.5px solid var(--tau-bd); border-radius: 11px; font-family: var(--tau-fh); font-size: 13px; font-weight: 700; text-decoration: none !important; transition: all .15s; }
.sf24-tauth-secondary:hover { background: var(--tau-bg); color: var(--tau-tx) !important; border-color: #cbcdd5; }

@media (max-width: 520px) {
  /* Full-bleed card on mobile — no white stripes, single visual surface */
  .sf24-tauth-wrap { padding: 0; align-items: stretch; min-height: 100vh; min-height: 100dvh; }
  .sf24-tauth-card {
    padding: 18px 22px 24px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Compact spacing so signup fits one screen without scroll */
  .sf24-tauth-head { margin-bottom: 12px; }
  .sf24-tauth-head h1 { font-size: 21px; margin: 0 0 4px; }
  .sf24-tauth-head p { font-size: 12.5px; }
  .sf24-tauth-brand { margin-bottom: 6px !important; }
  .sf24-tauth-icon { width: 36px !important; height: 36px !important; }
  .sf24-tauth-icon svg { width: 16px !important; height: 16px !important; }
  .sf24-tauth-perks { margin: 0 0 14px; padding: 10px 12px; gap: 5px; border-radius: 10px; }
  .sf24-tauth-perks li { font-size: 12px; gap: 7px; }
  .sf24-tauth-perk-check { width: 16px; height: 16px; font-size: 9px; }
  .sf24-tauth-social { margin-bottom: 12px; }
  .sf24-tauth-divider { margin: 10px 0; font-size: 10.5px; }
  .sf24-tauth-form { gap: 11px; }
  .sf24-tauth-field { gap: 4px; }
  .sf24-tauth-field input { padding: 11px 13px; font-size: 14px; }
  .sf24-tauth-foot { margin-top: 14px; padding-top: 12px; }
  .sf24-tauth-trust { margin-top: 10px; }
}

/* ── Social login (Nextend) + "or" divider ── */
.sf24-tauth-social { margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; }
.sf24-tauth-social .nsl-container { margin: 0 auto 4px !important; width: 100% !important; max-width: 340px !important; display: flex !important; flex-direction: column !important; align-items: center !important; }
.sf24-tauth-social .nsl-container-buttons { gap: 8px !important; width: 100% !important; display: flex !important; flex-direction: column !important; align-items: stretch !important; }

/* Google "Continue with" button — proper Google branding (white bg, dark text, gray border) */
.sf24-tauth-social .nsl-container .nsl-button,
.sf24-tauth-social .nsl-container .nsl-button-default,
.sf24-tauth-social .nsl-container a.nsl-button {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  border: 1.5px solid #d4d6dd !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #1f2937 !important;
  box-shadow: 0 2px 8px -4px rgba(15,15,17,.08) !important;
  transition: all .2s ease !important;
  font-family: var(--tau-fh) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.sf24-tauth-social .nsl-container .nsl-button:hover,
.sf24-tauth-social .nsl-container .nsl-button-default:hover {
  transform: translateY(-1px);
  border-color: #9ca3af !important;
  background: #fafafa !important;
  background-color: #fafafa !important;
  box-shadow: 0 8px 18px -6px rgba(15,15,17,.16) !important;
}

/* Force readable label color (override Nextend white-on-white) */
.sf24-tauth-social .nsl-container .nsl-button-default .nsl-button-label-copy,
.sf24-tauth-social .nsl-container .nsl-button-default span.nsl-button-label-copy,
.sf24-tauth-social .nsl-container .nsl-button .nsl-button-label-copy {
  font-family: var(--tau-fh) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  color: #1f2937 !important;
  background: transparent !important;
  text-shadow: none !important;
  margin: 0 !important;
}

/* Google logo SVG container */
.sf24-tauth-social .nsl-container .nsl-button-svg-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sf24-tauth-social .nsl-container .nsl-button-svg-container svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

/* "or continue with email" divider line */
.sf24-tauth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.sf24-tauth-divider::before, .sf24-tauth-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--tau-bd), transparent); }
.sf24-tauth-divider span { font-size: 11.5px; font-weight: 700; color: var(--tau-tm); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
