/* ==========================================================================
   WifiSpot Admin Authentication Surface
   Editorial Telecom Aesthetic · Light (Porcelain & Graphite) & Dark (Obsidian Carbon)
   Zero Bootstrap modals — inline step transitions (Login / Forgot / 2FA / Passkey)
   ========================================================================== */

:root {
	color-scheme: light;
	--auth-bg: #f4f5f7;
	--auth-bg-pattern: rgba(15, 23, 42, .035);
	--auth-surface: #ffffff;
	--auth-surface-muted: #f8f9fb;
	--auth-surface-subtle: #f1f3f6;
	--auth-border: #e4e7ec;
	--auth-border-strong: #cdd3dc;
	--auth-ink: #0f172a;
	--auth-ink-2: #334155;
	--auth-ink-muted: #64748b;
	--auth-accent: #0f62fe;
	--auth-accent-hover: #0353e9;
	--auth-accent-soft: #eef4ff;
	--auth-accent-ring: rgba(15, 98, 254, .18);
	--auth-teal: #0e9f6e;
	--auth-teal-soft: #ecfdf5;
	--auth-teal-border: #a7f3d0;
	--auth-danger: #dc2626;
	--auth-danger-soft: #fef2f2;
	--auth-danger-border: #fecaca;
	--auth-warning: #d97706;
	--auth-shadow: 0 18px 48px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .04);
	--auth-radius: 14px;
	--auth-radius-sm: 9px;
	--auth-aside-bg: #0c121e;
	--auth-aside-border: rgba(255, 255, 255, .08);
	--auth-aside-ink: #f8fafc;
	--auth-aside-muted: #94a3b8;
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--auth-bg: #0b0d11;
	--auth-bg-pattern: rgba(255, 255, 255, .03);
	--auth-surface: #131720;
	--auth-surface-muted: #181d28;
	--auth-surface-subtle: #1e2432;
	--auth-border: #252c3b;
	--auth-border-strong: #364056;
	--auth-ink: #f1f5f9;
	--auth-ink-2: #cbd5e1;
	--auth-ink-muted: #8b97ad;
	--auth-accent: #3b82f6;
	--auth-accent-hover: #2563eb;
	--auth-accent-soft: rgba(59, 130, 246, .14);
	--auth-accent-ring: rgba(59, 130, 246, .28);
	--auth-teal: #10b981;
	--auth-teal-soft: rgba(16, 185, 129, .14);
	--auth-teal-border: rgba(16, 185, 129, .32);
	--auth-danger: #f87171;
	--auth-danger-soft: rgba(239, 68, 68, .12);
	--auth-danger-border: rgba(239, 68, 68, .32);
	--auth-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .04) inset;
}

:root[data-palette="ivory"][data-theme="light"] {
	color-scheme: light;
	--auth-bg: #faf6ef;
	--auth-bg-pattern: rgba(42, 33, 24, .04);
	--auth-surface: #fffdfa;
	--auth-surface-muted: #f7f1e6;
	--auth-surface-subtle: #ede4d4;
	--auth-border: #dccfb9;
	--auth-border-strong: #c9b8a1;
	--auth-ink: #1d160f;
	--auth-ink-2: #493d31;
	--auth-ink-muted: #6f6152;
	--auth-accent: #2b6f8e;
	--auth-accent-hover: #245d78;
	--auth-accent-soft: #dfedf2;
	--auth-accent-ring: rgba(43, 111, 142, .22);
	--auth-teal: #2e6b45;
	--auth-teal-soft: #e2efe6;
	--auth-teal-border: #b5d6c0;
	--auth-danger: #a9364a;
	--auth-danger-soft: #f9e6e9;
	--auth-danger-border: #e7bcc3;
	--auth-aside-bg: #221c18;
	--auth-aside-border: rgba(255, 250, 242, .08);
	--auth-aside-ink: #fffaf2;
	--auth-aside-muted: #b5a897;
}

:root[data-palette="ivory"][data-theme="dark"] {
	color-scheme: dark;
	--auth-bg: #221c18;
	--auth-bg-pattern: rgba(255, 250, 242, .03);
	--auth-surface: #2b2420;
	--auth-surface-muted: #332c26;
	--auth-surface-subtle: #38302a;
	--auth-border: #453a30;
	--auth-border-strong: #5a4d3f;
	--auth-ink: #fffaf2;
	--auth-ink-2: #efe8dd;
	--auth-ink-muted: #b5a897;
	--auth-accent: #4ea8d1;
	--auth-accent-hover: #72bfdf;
	--auth-accent-soft: #203943;
	--auth-accent-ring: rgba(78, 168, 209, .28);
	--auth-teal: #9fd3b8;
	--auth-teal-soft: #263b32;
	--auth-teal-border: rgba(159, 211, 184, .32);
	--auth-danger: #f08a94;
	--auth-danger-soft: rgba(240, 138, 148, .14);
	--auth-danger-border: rgba(240, 138, 148, .32);
	--auth-aside-bg: #1a1512;
	--auth-aside-border: rgba(255, 250, 242, .08);
	--auth-aside-ink: #fffaf2;
	--auth-aside-muted: #b5a897;
	--auth-shadow: 0 24px 64px rgba(15, 10, 6, .55), 0 1px 0 rgba(255, 250, 242, .04) inset;
}

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

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background-color: var(--auth-bg);
	color: var(--auth-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.ws-auth-ready {
	opacity: 1;
}

/* Subtle architectural coordinate grid backdrop */
.ws-auth-shell {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(380px, 44%) 1fr;
	background: var(--auth-bg);
}

/* ── Left Editorial / Brand Rail ─────────────────────────────────────────── */
.ws-auth-aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 44px 48px;
	background: var(--auth-aside-bg);
	color: var(--auth-aside-ink);
	overflow: hidden;
	border-right: 1px solid var(--auth-aside-border);
}

/* Precision geometric grid + soft radial spotlight */
.ws-auth-aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: radial-gradient(ellipse 85% 75% at 30% 35%, #000 35%, transparent 100%);
	-webkit-mask-image: radial-gradient(ellipse 85% 75% at 30% 35%, #000 35%, transparent 100%);
	pointer-events: none;
}

.ws-auth-aside::after {
	content: "";
	position: absolute;
	width: 520px;
	height: 520px;
	top: -160px;
	left: -140px;
	background: radial-gradient(circle, rgba(15, 98, 254, .22) 0%, rgba(14, 159, 110, .07) 45%, transparent 72%);
	pointer-events: none;
}

.ws-aside-top,
.ws-aside-body,
.ws-aside-foot {
	position: relative;
	z-index: 1;
}

.ws-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.ws-brand-logo {
	height: 28px;
	width: auto;
	display: block;
	filter: brightness(0) invert(1);
}

.ws-brand-logo-custom {
	max-height: 36px;
	max-width: 190px;
	object-fit: contain;
	display: none;
}

.ws-brand-logo-custom.is-visible {
	display: block;
}

.ws-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #93c5fd;
	background: rgba(59, 130, 246, .14);
	border: 1px solid rgba(59, 130, 246, .28);
}

.ws-aside-body {
	margin: auto 0;
	padding: 36px 0;
	max-width: 440px;
}

.ws-aside-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #60a5fa;
	margin-bottom: 18px;
}

.ws-aside-kicker-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, .2);
}

.ws-aside-title {
	margin: 0 0 16px;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.025em;
	color: #ffffff;
}

.ws-aside-copy {
	margin: 0 0 32px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--auth-aside-muted);
}

/* Signal / Security pillars */
.ws-aside-pillars {
	display: grid;
	gap: 12px;
}

.ws-pillar {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 15px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .035);
	border: 1px solid rgba(255, 255, 255, .07);
}

.ws-pillar-ico {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(59, 130, 246, .14);
	color: #60a5fa;
}

.ws-pillar-ico.teal {
	background: rgba(16, 185, 129, .14);
	color: #34d399;
}

.ws-pillar-ico svg {
	width: 16px;
	height: 16px;
}

.ws-pillar-title {
	font-size: 13px;
	font-weight: 600;
	color: #f1f5f9;
	margin-bottom: 2px;
}

.ws-pillar-desc {
	font-size: 12px;
	line-height: 1.45;
	color: #94a3b8;
}

.ws-aside-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 12px;
	color: #64748b;
}

.ws-aside-host {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11.5px;
	color: #94a3b8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Right Auth Workspace ────────────────────────────────────────────────── */
.ws-auth-main {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 24px 32px;
	background-image: radial-gradient(var(--auth-bg-pattern) 1px, transparent 1px);
	background-size: 22px 22px;
}

.ws-auth-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.ws-mobile-brand {
	display: none;
	align-items: center;
	gap: 10px;
}

.ws-mobile-brand img {
	height: 22px;
	width: auto;
}

:root[data-theme="dark"] .ws-mobile-brand img {
	filter: brightness(0) invert(1);
}

.ws-theme-btn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--auth-border);
	background: var(--auth-surface);
	color: var(--auth-ink-2);
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.ws-theme-btn:hover {
	border-color: var(--auth-border-strong);
	background: var(--auth-surface-muted);
	color: var(--auth-ink);
}

.ws-theme-btn svg {
	width: 14px;
	height: 14px;
}

.ws-auth-center {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 0 28px;
}

/* ── Auth Card ───────────────────────────────────────────────────────────── */
.ws-auth-card {
	width: 100%;
	max-width: 432px;
	background: var(--auth-surface);
	border: 1px solid var(--auth-border);
	border-radius: var(--auth-radius);
	box-shadow: var(--auth-shadow);
	padding: 34px 32px 28px;
	position: relative;
	overflow: hidden;
}

/* Top thin loading bar (replaces ugly fullscreen black spinner overlay) */
.ws-top-progress {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	overflow: hidden;
	opacity: 0;
	transition: opacity .2s ease;
}

.ws-top-progress.is-active {
	opacity: 1;
}

.ws-top-progress-bar {
	height: 100%;
	width: 40%;
	background: var(--auth-accent);
	border-radius: 0 2px 2px 0;
	animation: wsProgressSlide 1.15s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes wsProgressSlide {
	0%   { transform: translateX(-110%); }
	100% { transform: translateX(280%); }
}

/* Card Header */
.ws-step-header {
	margin-bottom: 24px;
}

.ws-step-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--auth-accent);
	margin-bottom: 8px;
}

.ws-step-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--auth-ink);
	line-height: 1.25;
}

.ws-step-sub {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--auth-ink-muted);
}

/* Inline Feedback Banner (replaces browser alert()) */
.ws-banner {
	display: none;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 13px;
	border-radius: var(--auth-radius-sm);
	font-size: 13px;
	line-height: 1.45;
	margin-bottom: 18px;
	border: 1px solid transparent;
	animation: wsFadeSlide .18s ease-out;
}

.ws-banner.is-visible {
	display: flex;
}

.ws-banner.is-error {
	background: var(--auth-danger-soft);
	border-color: var(--auth-danger-border);
	color: var(--auth-danger);
}

.ws-banner.is-success {
	background: var(--auth-teal-soft);
	border-color: var(--auth-teal-border);
	color: var(--auth-teal);
}

.ws-banner.is-info {
	background: var(--auth-accent-soft);
	border-color: rgba(15, 98, 254, .24);
	color: var(--auth-accent);
}

.ws-banner-ico {
	flex: 0 0 16px;
	margin-top: 2px;
}

.ws-banner-ico svg {
	width: 16px;
	height: 16px;
	display: block;
}

.ws-banner-text {
	flex: 1;
	word-break: break-word;
}

/* Step Panels */
.ws-step {
	display: none;
}

.ws-step.is-active {
	display: block;
	animation: wsFadeSlide .22s ease-out;
}

@keyframes wsFadeSlide {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Form Fields */
.ws-field {
	margin-bottom: 16px;
}

.ws-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.ws-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--auth-ink-2);
	margin: 0;
}

.ws-link-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--auth-accent);
	cursor: pointer;
	text-decoration: none;
	transition: color .15s ease;
}

.ws-link-btn:hover {
	color: var(--auth-accent-hover);
	text-decoration: underline;
}

.ws-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.ws-input-icon {
	position: absolute;
	left: 13px;
	color: var(--auth-ink-muted);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ws-input-icon svg {
	width: 16px;
	height: 16px;
}

.ws-input {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 40px;
	border-radius: var(--auth-radius-sm);
	border: 1px solid var(--auth-border-strong);
	background: var(--auth-surface);
	color: var(--auth-ink);
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ws-input.has-trailing {
	padding-right: 44px;
}

.ws-input::placeholder {
	color: var(--auth-ink-muted);
	opacity: .75;
}

.ws-input:focus {
	border-color: var(--auth-accent);
	box-shadow: 0 0 0 3px var(--auth-accent-ring);
}

.ws-input.field-invalid {
	border-color: var(--auth-danger);
	background: var(--auth-danger-soft);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.ws-input.field-valid {
	border-color: var(--auth-teal);
}

.ws-eye-btn {
	position: absolute;
	right: 6px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 7px;
	background: transparent;
	color: var(--auth-ink-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.ws-eye-btn:hover {
	background: var(--auth-surface-subtle);
	color: var(--auth-ink);
}

.ws-eye-btn svg {
	width: 17px;
	height: 17px;
}

.ws-field-error {
	display: none;
	margin-top: 5px;
	font-size: 12px;
	color: var(--auth-danger);
}

.ws-field.has-error .ws-field-error {
	display: block;
}

/* Adaptive CAPTCHA Challenge Box */
.ws-captcha-box {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--auth-surface-muted);
	border: 1px solid var(--auth-border);
}
.ws-captcha-img-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}
.ws-captcha-img-row img {
	border-radius: 8px;
	border: 1px solid var(--auth-border);
	flex-shrink: 0;
	display: block;
}
.ws-captcha-input {
	padding-left: 12px !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
}
.ws-captcha-external {
	margin-top: 6px;
	min-height: 66px;
}

/* Remember Me Custom Checkbox */
.ws-remember-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 20px;
}

.ws-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	font-size: 13px;
	color: var(--auth-ink-2);
	user-select: none;
	margin: 0;
	font-weight: 400;
}

.ws-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 17px;
	height: 17px;
	margin: 0;
	border-radius: 5px;
	border: 1.5px solid var(--auth-border-strong);
	background: var(--auth-surface);
	cursor: pointer;
	position: relative;
	flex: 0 0 17px;
	transition: background .15s ease, border-color .15s ease;
}

.ws-check input[type="checkbox"]:checked {
	background: var(--auth-accent);
	border-color: var(--auth-accent);
}

.ws-check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4.5px;
	height: 8.5px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ws-check input[type="checkbox"]:focus-visible {
	box-shadow: 0 0 0 3px var(--auth-accent-ring);
	outline: none;
}

/* Buttons */
.ws-btn {
	width: 100%;
	height: 44px;
	padding: 0 18px;
	border-radius: var(--auth-radius-sm);
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .08s ease, box-shadow .15s ease;
}

.ws-btn:active:not(:disabled) {
	transform: translateY(1px);
}

.ws-btn:disabled {
	opacity: .62;
	cursor: not-allowed;
}

.ws-btn svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.ws-btn-primary {
	background: var(--auth-accent);
	color: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 98, 254, .22);
}

.ws-btn-primary:hover:not(:disabled) {
	background: var(--auth-accent-hover);
	box-shadow: 0 4px 12px rgba(15, 98, 254, .26);
}

.ws-btn-secondary {
	background: var(--auth-surface-muted);
	color: var(--auth-ink);
	border-color: var(--auth-border-strong);
}

.ws-btn-secondary:hover:not(:disabled) {
	background: var(--auth-surface-subtle);
	border-color: var(--auth-ink-muted);
}

.ws-btn-ghost {
	background: transparent;
	color: var(--auth-ink-muted);
	border-color: transparent;
}

.ws-btn-ghost:hover:not(:disabled) {
	background: var(--auth-surface-muted);
	color: var(--auth-ink);
}

.ws-btn-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ws-btn-spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #ffffff;
	animation: wsSpin .65s linear infinite;
	display: none;
}

.ws-btn-secondary .ws-btn-spinner {
	border-color: rgba(100, 116, 139, .3);
	border-top-color: var(--auth-ink);
}

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

.ws-btn.is-loading .ws-btn-ico {
	display: none;
}

@keyframes wsSpin {
	to { transform: rotate(360deg); }
}

/* Divider */
.ws-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	font-size: 11.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--auth-ink-muted);
}

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

/* ── 2FA / TOTP Step ─────────────────────────────────────────────────────── */
.ws-otp-setup {
	margin-bottom: 20px;
	padding: 16px;
	border-radius: 10px;
	background: var(--auth-surface-muted);
	border: 1px solid var(--auth-border);
}

.ws-otp-qr-wrap {
	display: flex;
	justify-content: center;
	margin: 14px 0 6px;
}

.ws-otp-qr-frame {
	padding: 10px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	display: inline-block;
	box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.ws-otp-qr-frame img {
	display: block;
	width: 188px;
	height: 188px;
}

.ws-otp-help {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--auth-ink-2);
}

.ws-otp-help a {
	color: var(--auth-accent);
	font-weight: 600;
	text-decoration: none;
}

.ws-otp-help a:hover {
	text-decoration: underline;
}

/* 6-Digit Segmented OTP Input */
.ws-otp-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin: 10px 0 18px;
	direction: ltr;
}

.ws-otp-cell {
	height: 52px;
	width: 100%;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--auth-ink);
	background: var(--auth-surface);
	border: 1.5px solid var(--auth-border-strong);
	border-radius: var(--auth-radius-sm);
	outline: none;
	caret-color: var(--auth-accent);
	transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.ws-otp-cell:focus {
	border-color: var(--auth-accent);
	box-shadow: 0 0 0 3px var(--auth-accent-ring);
}

.ws-otp-cell.is-filled {
	border-color: var(--auth-accent);
	background: var(--auth-accent-soft);
}

.ws-otp-cell.is-invalid {
	border-color: var(--auth-danger);
	background: var(--auth-danger-soft);
	animation: wsShake .28s ease-in-out;
}

@keyframes wsShake {
	0%, 100% { transform: translateX(0); }
	25%      { transform: translateX(-5px); }
	75%      { transform: translateX(5px); }
}

.ws-otp-hint {
	font-size: 12px;
	color: var(--auth-ink-muted);
	text-align: center;
	margin: -8px 0 18px;
}

/* ── Passkey Inline Enrollment / Quick Sign-in Card ─────────────────────── */
.ws-passkey-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 0 6px;
}

.ws-passkey-ring {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: var(--auth-accent-soft);
	border: 1px solid rgba(15, 98, 254, .22);
	color: var(--auth-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.ws-passkey-ring.is-teal {
	background: var(--auth-teal-soft);
	border-color: var(--auth-teal-border);
	color: var(--auth-teal);
}

.ws-passkey-ring svg {
	width: 30px;
	height: 30px;
}

.ws-passkey-account {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--auth-surface-muted);
	border: 1px solid var(--auth-border);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--auth-ink-2);
	margin-bottom: 18px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ws-passkey-actions {
	display: grid;
	gap: 10px;
	width: 100%;
	margin-top: 8px;
}

.ws-passkey-name-field {
	width: 100%;
	text-align: left;
	margin-bottom: 14px;
}

.ws-input.ws-input-plain {
	padding-left: 14px;
}

/* Card Footer */
.ws-card-foot {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--auth-border);
	text-align: center;
	font-size: 12px;
	color: var(--auth-ink-muted);
}

/* Hidden legacy debug container kept inert for PasskeyFunc.js compat */
#passkeyStatus {
	display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.ws-auth-shell {
		grid-template-columns: 1fr;
	}
	.ws-auth-aside {
		display: none;
	}
	.ws-mobile-brand {
		display: inline-flex;
	}
	.ws-auth-main {
		padding: 18px 16px;
	}
	.ws-auth-card {
		padding: 28px 22px 24px;
	}
}

@media (max-width: 400px) {
	.ws-otp-grid {
		gap: 6px;
	}
	.ws-otp-cell {
		height: 46px;
		font-size: 19px;
	}
}
