.contact-auth {
	display: grid;
	gap: 14px;
}

html.auth-pending [data-auth-shell] {
	visibility: hidden;
}

.contact-auth__lead {
	margin: 0;
	color: var(--muted, #cbd5e1);
	line-height: 1.5;
}

.contact-auth__field {
	display: grid;
	gap: 8px;
}

.contact-auth__field > span {
	font-size: .92rem;
	font-weight: 700;
	color: var(--ink, #fff);
}

.contact-auth__controls {
	display: grid;
	gap: 10px;
}

.contact-auth__input {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--line, rgba(255,255,255,.14));
	border-radius: 14px;
	padding: 12px 14px;
	color: var(--ink, #fff);
	background: rgba(255,255,255,.08);
	font: inherit;
	font-size: max(1rem, 16px);
}

.contact-auth__input:focus {
	outline: 2px solid var(--brand, #38bdf8);
	outline-offset: 1px;
}

.contact-auth__send-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.contact-auth__send-row button {
	min-height: 2.7rem;
}

.contact-auth__spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid rgba(255,255,255,.2);
	border-top-color: var(--brand, #38bdf8);
	border-radius: 50%;
	animation: contact-auth-spin .8s linear infinite;
}

@keyframes contact-auth-spin {
	to { transform: rotate(360deg); }
}

.contact-auth__inline-error {
	margin: 0;
	color: #fca5a5;
	font-size: .88rem;
}

.contact-auth__verify-wrap {
	display: grid;
	gap: 10px;
}

.contact-auth__otp-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.contact-auth__otp-group {
	display: flex;
	gap: 8px;
}

.contact-auth__otp-digit {
	width: 2.4rem;
	height: 2.7rem;
	padding: 0;
	border: 1px solid var(--line, rgba(255,255,255,.14));
	border-radius: 12px;
	text-align: center;
	font: inherit;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--ink, #fff);
	background: rgba(255,255,255,.08);
}

.contact-auth__otp-digit:focus {
	outline: 2px solid var(--brand, #38bdf8);
	outline-offset: 1px;
}

.contact-auth__otp-digit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.contact-auth__otp-hint {
	margin: 0;
	color: var(--muted, #cbd5e1);
	font-size: .84rem;
	line-height: 1.4;
}

.contact-auth__send-row button:disabled,
.contact-auth__otp-row button:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.contact-auth__status {
	margin: 0;
	min-height: 1.4rem;
	color: var(--muted, #cbd5e1);
	font-size: .92rem;
	line-height: 1.45;
}

.contact-auth__recaptcha-wrap {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.contact-auth__recaptcha {
	min-height: 1px;
	width: 1px;
	overflow: hidden;
}

.contact-auth__recaptcha-hint {
	display: none;
}

.contact-auth-recaptcha-host {
	position: fixed;
	left: 50%;
	bottom: max(18px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 1200;
	width: min(420px, calc(100vw - 28px));
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(17, 24, 39, .96);
	border: 1px solid rgba(255,255,255,.14);
	box-shadow: 0 16px 40px rgba(0,0,0,.35);
	box-sizing: border-box;
}

.contact-auth-recaptcha-host[hidden] {
	display: none !important;
}

.contact-auth-overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(2, 6, 23, .72);
}

.contact-auth-overlay__panel {
	width: min(420px, 100%);
	border: 1px solid var(--line, rgba(255,255,255,.14));
	border-radius: 18px;
	padding: 18px;
	background: var(--panel, #172033);
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

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

.contact-auth-overlay__head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.contact-auth-overlay__close {
	min-height: 2rem;
	padding: 0 .75rem;
	border: 0;
	border-radius: 999px;
	color: var(--ink, #fff);
	background: rgba(255,255,255,.12);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
