/* One Six — sign-in panel (OS_Auth) and its pop-up.
 *
 * Shopify-style card in the One Six look: logo, one step at a time, floating
 * labels, ink buttons. Self-contained (it also appears on the checkout page,
 * outside the widget wrappers), and every control rule is written
 * `.os-auth <el>.class` so Hello Elementor's button/input resets (magenta
 * borders, :hover fills) never win. */

.os-auth, .os-auth-modal { --oa-ink: var(--os-ink, #111111); --oa-deep: var(--os-deep, #1c1b1a); --oa-mute: var(--os-mute, #6b6762); --oa-line: var(--os-line, #e4e1dc); --oa-mist: var(--os-mist, #f5f3ef); --oa-err: #b3261e; --oa-ok: #3f5a2c; --oa-r: var(--os-r, 0px); --oa-font: var(--os-font-sans, "Jost", system-ui, sans-serif); --oa-serif: var(--os-font-serif, "Cormorant Garamond", Georgia, serif); }
.os-auth, .os-auth *, .os-auth *::before, .os-auth *::after { box-sizing: border-box; }
.os-auth { position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding: 38px 36px 30px; border-radius: var(--oa-r); background: #fff; color: var(--oa-ink); font: 400 16px/1.5 var(--oa-font); -webkit-font-smoothing: antialiased; text-align: left; }
.os-auth--page { box-shadow: 0 30px 60px -40px rgba(17, 17, 17, .35); }
.os-auth .os-auth__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0; }

.os-auth .os-auth__top { display: flex; justify-content: center; margin-bottom: 28px; }
.os-auth .os-auth__logo { display: inline-flex; color: var(--oa-ink); }
.os-auth .os-auth__logo-t { font: 500 20px/1 var(--oa-font); letter-spacing: .3em; text-transform: uppercase; }

.os-auth .os-auth__view[hidden] { display: none; }
.os-auth .os-auth__view { animation: os-auth-in .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes os-auth-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.os-auth .os-auth__h { margin: 0 0 6px; padding: 0; font: 400 32px/1.1 var(--oa-serif); color: var(--oa-ink); text-transform: none; }
.os-auth .os-auth__h:focus { outline: none; }
.os-auth .os-auth__sub, .os-auth .os-auth__who { margin: 0 0 20px; font-size: 15px; line-height: 1.5; color: var(--oa-mute); overflow-wrap: anywhere; }
.os-auth .os-auth__sub strong, .os-auth .os-auth__who span { color: var(--oa-ink); font-weight: 500; }
.os-auth .os-auth__form { display: grid; gap: 12px; margin: 0; }

/* fields with floating labels */
.os-auth .os-auth__f { position: relative; margin: 0; }
.os-auth .os-auth__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.os-auth input.os-auth__in { display: block; width: 100%; height: 52px; margin: 0; padding: 15px 13px; border: 1px solid var(--oa-line); border-radius: var(--oa-r); background: #fff; color: var(--oa-ink); font: 400 16px/1.3 var(--oa-font); box-shadow: none; outline: none; transition: padding .15s, border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.os-auth input.os-auth__in::placeholder { color: #85807a; opacity: 1; }
.os-auth input.os-auth__in:not(:placeholder-shown) { padding: 23px 13px 7px; }
.os-auth input.os-auth__in:focus { border-color: var(--oa-ink); box-shadow: 0 0 0 1px var(--oa-ink); }
.os-auth input.os-auth__in[aria-invalid="true"] { border-color: var(--oa-err); box-shadow: 0 0 0 1px var(--oa-err); }
.os-auth .os-auth__f > label { position: absolute; top: 7px; left: 14px; right: 44px; margin: 0; overflow: hidden; font: 400 12px/1.3 var(--oa-font); color: var(--oa-mute); white-space: nowrap; text-overflow: ellipsis; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.os-auth .os-auth__f:has(input:not(:placeholder-shown)) > label { opacity: 1; transform: none; }
.os-auth .os-auth__f--pass input.os-auth__in { padding-right: 50px; }
.os-auth button.os-auth__eye { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--oa-mute); box-shadow: none; cursor: pointer; }
.os-auth button.os-auth__eye:hover, .os-auth button.os-auth__eye:focus { background: var(--oa-mist); color: var(--oa-ink); border: 0; }
.os-auth button.os-auth__eye[aria-pressed="true"] { color: var(--oa-ink); }
.os-auth svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.os-auth .os-auth__logo-svg { fill: currentColor; stroke: none; width: 150px; height: auto; }

/* buttons */
.os-auth button.os-auth__btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; min-height: 52px; margin: 4px 0 0; padding: 0 20px; border: 1px solid var(--oa-ink); border-radius: var(--oa-r); background: var(--oa-ink); color: #fff; font: 500 13px/1 var(--oa-font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: none; cursor: pointer; white-space: normal; transition: background-color .2s, border-color .2s, color .2s; }
.os-auth button.os-auth__btn:hover, .os-auth button.os-auth__btn:focus { border-color: var(--oa-deep); background: var(--oa-deep); color: #fff; }
.os-auth button.os-auth__btn:focus-visible, .os-auth button.os-auth__link:focus-visible, .os-auth button.os-auth__eye:focus-visible { outline: 2px solid var(--os-accent, #111111); outline-offset: 2px; }
.os-auth button.os-auth__btn--line { border-color: var(--oa-line); background: #fff; color: var(--oa-ink); }
.os-auth button.os-auth__btn--line:hover, .os-auth button.os-auth__btn--line:focus { border-color: var(--oa-ink); background: #fff; color: var(--oa-ink); }
.os-auth button.os-auth__btn[disabled], .os-auth button.os-auth__btn.is-busy { opacity: .7; cursor: default; }
.os-auth .os-auth__spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: os-auth-spin .7s linear infinite; }
.os-auth .is-busy .os-auth__spin { display: inline-block; }
@keyframes os-auth-spin { to { transform: rotate(360deg); } }

.os-auth button.os-auth__link { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--oa-ink); font-family: var(--oa-font); font-size: inherit; font-weight: 500; line-height: inherit; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; box-shadow: none; cursor: pointer; }
.os-auth button.os-auth__link:hover, .os-auth button.os-auth__link:focus { border: 0; background: none; color: var(--oa-ink); text-decoration-thickness: 2px; }
.os-auth button.os-auth__link[disabled] { color: var(--oa-mute); text-decoration: none; cursor: default; }
.os-auth .os-auth__alt { margin: 18px 0 0; font-size: 14.5px; color: var(--oa-mute); text-align: center; }
.os-auth .os-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.os-auth .os-auth__check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14.5px; font-weight: 400; color: var(--oa-ink); cursor: pointer; }
.os-auth .os-auth__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--oa-ink); }
.os-auth .os-auth__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 13px; color: var(--oa-mute); }
.os-auth .os-auth__or::before, .os-auth .os-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--oa-line); }
.os-auth .os-auth__small { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--oa-mute); }
.os-auth .os-auth__small a { color: var(--oa-ink); }
.os-auth .os-auth__err { margin: 0; padding: 10px 12px; border-radius: var(--oa-r); background: #fbeceb; color: var(--oa-err); font-size: 14px; line-height: 1.45; }
.os-auth .os-auth__err[hidden] { display: none; }
.os-auth .os-auth__ok { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--oa-r); background: var(--oa-mist); color: var(--oa-ok); font-size: 14.5px; line-height: 1.5; }
.os-auth .os-auth__ok[hidden] { display: none; }
.os-auth .os-auth__ghost { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.os-auth .os-auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* password strength */
.os-auth .os-auth__meter { display: grid; gap: 6px; margin-top: -4px; font-size: 13px; color: var(--oa-mute); }
.os-auth .os-auth__bar { display: block; height: 3px; overflow: hidden; background: var(--oa-mist); }
.os-auth .os-auth__bar i { display: block; width: 0; height: 100%; background: var(--oa-err); transition: width .25s, background-color .25s; }
.os-auth .os-auth__meter[data-level="1"] i { width: 25%; }
.os-auth .os-auth__meter[data-level="2"] i { width: 55%; background: #b7791f; }
.os-auth .os-auth__meter[data-level="3"] i { width: 80%; background: var(--os-grey, #4a4743); }
.os-auth .os-auth__meter[data-level="4"] i { width: 100%; background: var(--oa-ok); }

/* 6-digit code */
.os-auth .os-auth__code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.os-auth input.os-auth__digit { width: 100%; height: 56px; margin: 0; padding: 0; border: 1px solid var(--oa-line); border-radius: var(--oa-r); background: #fff; color: var(--oa-ink); font: 500 22px/1 var(--oa-font); text-align: center; box-shadow: none; outline: none; -webkit-appearance: none; appearance: none; }
.os-auth input.os-auth__digit:focus { border-color: var(--oa-ink); box-shadow: 0 0 0 1px var(--oa-ink); }
.os-auth .os-auth__code[aria-invalid="true"] input.os-auth__digit { border-color: var(--oa-err); }

/* done */
.os-auth .os-auth__view--done { padding: 12px 0 6px; text-align: center; }
.os-auth .os-auth__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--oa-mist); color: var(--oa-ok); }
.os-auth .os-auth__tick svg { width: 26px; height: 26px; stroke-width: 2; }

/* the account page: centred card on the warm grey ground */
.os.os-woo.os-woo--account.has-auth { background-color: var(--os-mist, #f5f3ef); }
.os.os-woo.os-woo--account.has-auth .os-wrap { display: flex; flex-direction: column; align-items: center; }
.os.os-woo.os-woo--account.has-auth .woocommerce-notices-wrapper, .os.os-woo.os-woo--account.has-auth .woocommerce-message, .os.os-woo.os-woo--account.has-auth .woocommerce-info, .os.os-woo.os-woo--account.has-auth .woocommerce-error { width: 100%; max-width: 440px; }

/* ---------------------------------------------------------------- pop-up */
.os-auth-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.os-auth-modal[hidden] { display: none; }
.os-auth-modal__scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); animation: os-auth-fade .2s ease; }
.os-auth-modal__card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: var(--oa-r); background: #fff; box-shadow: 0 40px 80px -30px rgba(17, 17, 17, .5); animation: os-auth-pop .28s cubic-bezier(.16, 1, .3, 1); }
.os-auth-modal .os-auth { box-shadow: none; }
.os-auth-modal button.os-auth-modal__x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--oa-ink); box-shadow: none; cursor: pointer; }
.os-auth-modal button.os-auth-modal__x:hover, .os-auth-modal button.os-auth-modal__x:focus { border: 0; background: var(--oa-mist); color: var(--oa-ink); }
.os-auth-modal button.os-auth-modal__x:focus-visible { outline: 2px solid var(--oa-ink); outline-offset: 2px; }
.os-auth-modal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@keyframes os-auth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes os-auth-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes os-auth-up { from { transform: translateY(100%); } to { transform: none; } }
/* The script also pins the body (iOS Safari ignores overflow on <body>). */
html.os-auth-lock, html.os-auth-lock body { overflow: hidden; }

/* phones: a bottom sheet that can grow to full height */
@media (max-width: 600px) {
	.os-auth { padding: 32px 22px 24px; }
	.os-auth .os-auth__h { font-size: 28px; }
	.os-auth .os-auth__code { gap: 6px; }
	.os-auth input.os-auth__digit { height: 52px; font-size: 20px; }
	.os-auth-modal { align-items: flex-end; padding: 0; }
	.os-auth-modal__card { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); animation: os-auth-up .32s cubic-bezier(.16, 1, .3, 1); }
	.os-auth-modal__card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--oa-line); }
}
@media (max-width: 360px) {
	.os-auth .os-auth__two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.os-auth .os-auth__view, .os-auth-modal__scrim, .os-auth-modal__card { animation: none; }
}
