/* Passwordless login ([th_auth]) — inside the theme's gold .th-auth-card.
   Own namespace (.th-login*) + explicit values in every state, because the
   theme styles every input/button in .th-woo with !important-free but broad
   rules. Fields ≥16px (no iOS zoom). Hover only for real pointers (pitfall 13). */

.th-login{
	--tl-bg:#080808;--tl-line:var(--th-line,rgba(255,255,255,.14));--tl-text:var(--th-white,#f2efe7);
	--tl-muted:var(--th-muted,#8f8f8f);--tl-accent:var(--th-blue,#26dbe8);--tl-gold:var(--th-gold,#b99a62);
	--tl-red:var(--th-red-ink,#f5837d);--tl-ui:var(--th-ui,Inter,Arial,sans-serif);--tl-display:var(--th-display,Impact,sans-serif);
	color:var(--tl-text);font-family:var(--tl-ui);
}
.th-login [hidden]{display:none!important}

/* ---- progress 01 · 02 · 03 ---- */
.th-login .th-login-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 22px;padding:0;list-style:none}
.th-login .th-login-steps li{
	display:flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;margin:0;
	border:1px solid var(--tl-line);background:rgba(255,255,255,.02);color:var(--tl-muted);
	font:800 10px/1 var(--tl-ui);letter-spacing:.14em;text-transform:uppercase;clip-path:var(--th-cut-sm);
}
.th-login .th-login-steps b{font:400 16px/1 var(--tl-display);letter-spacing:.04em;color:inherit}
.th-login .th-login-steps li.is-done{color:var(--tl-text);border-color:color-mix(in srgb,var(--tl-accent) 40%,transparent)}
.th-login .th-login-steps li.is-done b{color:var(--tl-accent)}
.th-login .th-login-steps li.is-active b{color:#031014}
.th-login .th-login-steps li.is-active{background:var(--tl-accent);border-color:var(--tl-accent);color:#031014}

/* ---- headings ---- */
.th-login .th-login-title{margin:0 0 8px;font:400 clamp(24px,3vw,30px)/1 var(--tl-display);letter-spacing:.04em;text-transform:uppercase;color:var(--tl-text)}
.th-login .th-login-lead{margin:0 0 20px;color:var(--tl-muted);font-size:14px;line-height:1.55}
.th-login .th-login-lead b{color:var(--tl-text);font-weight:700;white-space:nowrap}

/* ---- form ---- */
.th-login .th-login-form{display:grid;gap:8px;margin:0}
.th-login .th-login-label{display:block;margin:6px 0 0;color:var(--tl-muted);font:700 11px/1.3 var(--tl-ui);letter-spacing:.1em;text-transform:uppercase}
.th-login .th-login-opt{text-transform:none;letter-spacing:0;font-weight:500}
.th-login input.th-login-input{
	box-sizing:border-box;width:100%;height:54px;min-height:54px;margin:0;padding:0 16px;
	border:1px solid var(--tl-line);border-radius:0;background:var(--tl-bg);color:var(--tl-text);
	font:600 16px/1 var(--tl-ui);letter-spacing:.02em;box-shadow:none;appearance:none;
}
.th-login input.th-login-input[type=date]{color-scheme:dark;cursor:pointer}
.th-login input.th-login-input[readonly]{color:var(--tl-muted);background:rgba(255,255,255,.03);cursor:default}
.th-login input.th-login-input:focus{outline:0;border-color:var(--tl-accent);box-shadow:0 0 16px rgba(0,234,255,.15)}
.th-login input.th-login-input::placeholder{color:rgba(255,255,255,.28)}
.th-login .th-login-note{color:var(--tl-muted);font-size:12px;line-height:1.4;margin:-2px 0 4px}
.th-login .th-login-error{min-height:0;margin:2px 0 0;color:var(--tl-red);font:600 13px/1.45 var(--tl-ui)}
.th-login .th-login-error:empty{display:none}
.th-login .th-login-hint{margin:0;color:var(--th-green-ink,#84dd6a);font:600 13px/1.45 var(--tl-ui)}
.th-login .th-login-hint:empty{display:none}

/* ---- buttons: explicit in every state (theme paints .th-woo button[type=submit]) ---- */
html body .th-login button.th-login-btn.th-login-btn,
html body .th-pk-offer button.th-login-btn.th-login-btn,
html body .th-pk-list button.th-login-btn.th-login-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;margin:10px 0 0;padding:12px 20px;
	border:1px solid var(--th-blue,#26dbe8);border-radius:0;background:var(--th-blue,#26dbe8);color:#031014;
	font:800 12px/1.2 var(--th-ui,Inter,Arial,sans-serif);letter-spacing:.18em;text-transform:uppercase;white-space:normal;text-align:center;
	clip-path:var(--th-cut-sm);cursor:pointer;box-shadow:none;transition:background .15s,border-color .15s,color .15s;
}
html body .th-login button.th-login-btn.th-login-btn:focus{outline:0}
html body .th-login button.th-login-btn.th-login-btn:focus-visible,
html body .th-pk-offer button.th-login-btn.th-login-btn:focus-visible,
html body .th-pk-list button.th-login-btn.th-login-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
html body .th-login button.th-login-btn.th-login-btn:disabled,
html body .th-pk-offer button.th-login-btn.th-login-btn:disabled,
html body .th-pk-list button.th-login-btn.th-login-btn:disabled{background:var(--th-blue,#26dbe8);border-color:var(--th-blue,#26dbe8);color:#031014;opacity:.55;cursor:default}
html body .th-login button.th-login-btn.th-login-btn.is-loading,
html body .th-pk-offer button.th-login-btn.th-login-btn.is-loading,
html body .th-pk-list button.th-login-btn.th-login-btn.is-loading{opacity:.7;cursor:progress}
html body .th-login button.th-login-btn.th-login-btn--ghost,
html body .th-pk-list button.th-login-btn.th-login-btn--ghost{background:transparent;border-color:var(--th-line,rgba(255,255,255,.14));color:var(--th-white,#f2efe7)}
html body .th-login button.th-login-btn.th-login-btn--ghost:disabled,
html body .th-pk-list button.th-login-btn.th-login-btn--ghost:disabled{background:transparent;border-color:var(--th-line,rgba(255,255,255,.14));color:var(--th-white,#f2efe7)}
@media not all and (hover:hover) and (pointer:fine){
	html body .th-login button.th-login-btn.th-login-btn:hover{background:var(--th-blue,#26dbe8);border-color:var(--th-blue,#26dbe8);color:#031014}
	html body .th-login button.th-login-btn.th-login-btn--ghost:hover{background:transparent;border-color:var(--th-line,rgba(255,255,255,.14));color:var(--th-white,#f2efe7)}
}
@media (hover:hover) and (pointer:fine){
	html body .th-login button.th-login-btn.th-login-btn:not(:disabled):hover,
	html body .th-pk-offer button.th-login-btn.th-login-btn:not(:disabled):hover,
	html body .th-pk-list button.th-login-btn.th-login-btn:not(:disabled):hover{background:#5ff4ff;border-color:#5ff4ff;color:#031014}
	html body .th-login button.th-login-btn.th-login-btn--ghost:not(:disabled):hover,
	html body .th-pk-list button.th-login-btn.th-login-btn--ghost:not(:disabled):hover{background:transparent;border-color:var(--th-blue,#26dbe8);color:var(--th-blue,#26dbe8)}
}

html body .th-login button.th-login-link.th-login-link,
html body .th-pk-offer button.th-login-link.th-login-link,
html body .th-pk-list button.th-login-link.th-login-link{
	display:inline-flex;align-items:center;gap:6px;min-height:40px;width:auto;margin:0;padding:0;border:0;background:none;box-shadow:none;clip-path:none;
	color:var(--th-blue,#26dbe8);font:700 12px/1.3 var(--th-ui,Inter,Arial,sans-serif);letter-spacing:.06em;text-transform:none;cursor:pointer;white-space:normal;text-align:left;
}
html body .th-login button.th-login-link.th-login-link:disabled{background:none;color:var(--th-muted,#8f8f8f);cursor:default}
html body .th-login button.th-login-link.th-login-link:focus-visible{outline:2px solid var(--th-blue,#26dbe8);outline-offset:2px}
@media (hover:hover) and (pointer:fine){
	html body .th-login button.th-login-link.th-login-link:not(:disabled):hover{background:none;color:#5ff4ff;text-decoration:underline}
}
.th-login .th-login-links{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:12px}
.th-login .th-login-step > .th-login-link{margin-top:10px}

/* ---- checkboxes ---- */
.th-login .th-login-check{display:flex;align-items:flex-start;gap:10px;margin:6px 0 0;color:var(--tl-text);font:500 13px/1.45 var(--tl-ui);text-transform:none;letter-spacing:0;cursor:pointer}
.th-login .th-login-check input{flex:0 0 18px;width:18px;height:18px;min-height:0;margin:1px 0 0;accent-color:var(--tl-accent);cursor:pointer}
.th-login .th-login-check a{color:var(--tl-accent)}

/* ---- "or" + passkey ---- */
.th-login .th-login-passkey{margin-top:18px}
.th-login .th-login-or{display:flex;align-items:center;gap:12px;color:var(--tl-muted);font:700 10px/1 var(--tl-ui);letter-spacing:.2em;text-transform:uppercase}
.th-login .th-login-or::before,.th-login .th-login-or::after{content:"";flex:1;height:1px;background:var(--tl-line)}

/* ---- code cells ---- */
.th-login .th-login-otp{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:4px 0 6px}
.th-login input.th-login-cell{
	box-sizing:border-box;width:100%;height:62px;min-height:62px;margin:0;padding:0;
	border:1px solid var(--tl-line);border-radius:0;background:var(--tl-bg);color:var(--tl-text);
	font:400 30px/1 var(--tl-display);text-align:center;letter-spacing:0;box-shadow:none;appearance:none;caret-color:var(--tl-accent);
}
.th-login input.th-login-cell:focus{outline:0;border-color:var(--tl-accent);box-shadow:0 0 16px rgba(0,234,255,.18)}
@media (max-width:380px){ .th-login .th-login-otp{gap:5px} .th-login input.th-login-cell{height:54px;min-height:54px;font-size:26px} }

/* ---- captcha ---- */
.th-login .th-login-captcha{min-height:100px;margin:6px 0 0}

.th-login .th-login-fatal{color:var(--tl-red);margin:0}

/* =========================================================================
   Phone field with a country picker (login form + checkout)
   ========================================================================= */
.th-phone{position:relative;display:block}
.th-phone .th-phone-picker{
	position:absolute;left:1px;top:1px;bottom:1px;z-index:2;display:flex;align-items:center;
	padding:0 10px 0 14px;border-right:1px solid var(--th-line,rgba(255,255,255,.14));
	color:var(--th-phone-color,inherit);
}
.th-phone .th-phone-cc{display:flex;align-items:center;gap:5px;font:600 15px/1 var(--th-ui,Inter,Arial,sans-serif);white-space:nowrap;pointer-events:none;color:inherit}
.th-phone .th-phone-cc b{font-size:10px;font-weight:800;letter-spacing:.08em;opacity:.6}
.th-phone .th-phone-cc i{font-style:normal;opacity:.55;font-size:13px;margin-left:1px}
/* transparent native select on top of the label: the system list on phones */
.th-phone select.th-phone-select{
	position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer;
	font-size:16px;border:0;background:transparent;appearance:auto;
}
.th-phone input{padding-left:96px}
.th-login .th-login-phone{display:block}

/* checkout fields sit in .woocommerce-input-wrapper */
.th-phone--checkout{position:relative;display:block}

/* =========================================================================
   Account: passkey offer (dashboard) + key list (settings)
   ========================================================================= */
.th-pk-offer{
	display:grid;grid-template-columns:1fr auto;gap:12px 20px;align-items:center;margin:0 0 22px;padding:18px 20px;
	border:1px solid color-mix(in srgb,var(--th-blue,#26dbe8) 45%,transparent);
	background:linear-gradient(120deg,rgba(38,219,232,.08),rgba(0,0,0,.25));
}
.th-pk-offer b{display:block;font:400 20px/1.1 var(--th-display,Impact,sans-serif);letter-spacing:.04em;text-transform:uppercase;color:var(--th-white,#f2efe7)}
.th-pk-offer p{margin:6px 0 0;color:var(--th-muted,#8f8f8f);font-size:13px;line-height:1.5}
.th-pk-offer .th-pk-offer-actions{display:flex;align-items:center;gap:14px}
.th-pk-offer .th-pk-offer-actions .th-login-btn{width:auto;margin:0;min-height:46px}
.th-pk-offer .th-login-error{grid-column:1/-1;margin:0;color:var(--th-red-ink,#f5837d);font-size:13px}
.th-pk-offer .th-login-error:empty{display:none}
.th-pk-offer .th-pk-ok{grid-column:1/-1;margin:0;color:var(--th-green-ink,#84dd6a);font-weight:700}
@media (max-width:640px){ .th-pk-offer{grid-template-columns:1fr} }

.th-pk-list{margin:0 0 26px;padding:18px 20px;border:1px solid var(--th-line,rgba(255,255,255,.14));background:rgba(255,255,255,.02)}
.th-pk-list legend{padding:0 8px;font:800 11px/1 var(--th-ui,Inter,Arial,sans-serif);letter-spacing:.14em;text-transform:uppercase;color:var(--th-white,#f2efe7)}
.th-pk-list .th-login-note{margin:0 0 12px;color:var(--th-muted,#8f8f8f);font-size:13px}
.th-pk-list ul{list-style:none;margin:0 0 12px;padding:0}
.th-pk-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--th-soft,rgba(255,255,255,.075))}
.th-pk-list li.is-empty{color:var(--th-muted,#8f8f8f);font-size:13px}
.th-pk-list li b{display:block;color:var(--th-white,#f2efe7);font-size:14px}
.th-pk-list li small{color:var(--th-muted,#8f8f8f);font-size:12px}
.th-pk-list .th-login-link.is-confirm{color:var(--th-red-ink,#f5837d)}
.th-pk-list .th-login-error{margin:0 0 8px;color:var(--th-red-ink,#f5837d);font-size:13px}
.th-pk-list .th-login-error:empty{display:none}
.th-pk-list .th-login-btn{width:auto;margin:0}
