/* ===== Auth v2 - shared shell for /login, /forgot (Tutorio blue) ===== */
/* if anything (iOS Safari quirks, overscroll) exposes area beyond the
   wrapper, it should read as the scene's blue rather than white */
body.auth-v2 { background: #1976d2; }
.auth-v2 .page-wraper {
	min-height: 100vh;
	background:
		radial-gradient(1200px 800px at 88% -12%, rgba(108, 196, 255, .5), transparent 60%),
		radial-gradient(1000px 700px at -12% 112%, rgba(6, 68, 117, .6), transparent 60%),
		linear-gradient(158deg, #0d47a1 0%, #1976d2 42%, #2196f3 78%, #43a7f5 100%);
	position: relative;
	/* both axes: the oversized orbs/watermark in .auth-bg bleed past every
	   edge and must never enlarge the scrollable page */
	overflow: hidden;
}
/* faint dot grid that fades out towards the fold */
.auth-v2 .page-wraper::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
	background-size: 28px 28px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 78%);
}
.auth-v2 .page-content { position: relative; z-index: 1; padding: 84px 0 96px; }
.auth-v2 .header.transparent { border-bottom: 0; }
.auth-v2 .header.transparent .mid-content h5 { color: #fff; }
.auth-shell { max-width: 520px; margin: 0 auto; }

/* ambient scene: drifting aurora orbs, rings, giant logo watermark */
/* absolute (not fixed): iOS Safari includes the layout overflow of
   oversized fixed-position children in the page's scroll extents even
   when the fixed container has overflow + clip-path, which stretched the
   page beyond the blue wrapper. Absolute children of the overflow:hidden
   wrapper clip reliably; clip-path stays as a guard for composited
   (blurred/animated) layers that iOS won't clip with overflow alone. */
.auth-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; clip-path: inset(0); pointer-events: none; }
.auth-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; }
.auth-bg .orb-1 {
	width: 560px;
	height: 560px;
	right: -150px;
	top: -170px;
	background: radial-gradient(circle at 35% 35%, rgba(133, 209, 255, .85), rgba(133, 209, 255, 0) 70%);
	animation: authDrift1 16s ease-in-out infinite alternate;
}
.auth-bg .orb-2 {
	width: 640px;
	height: 640px;
	left: -220px;
	bottom: -240px;
	background: radial-gradient(circle at 60% 40%, rgba(72, 169, 248, .7), rgba(72, 169, 248, 0) 70%);
	animation: authDrift2 21s ease-in-out infinite alternate;
}
.auth-bg .orb-3 {
	width: 380px;
	height: 380px;
	left: 56%;
	top: 56%;
	background: radial-gradient(circle, rgba(255, 255, 255, .32), transparent 70%);
	animation: authDrift3 26s ease-in-out infinite alternate;
}
@keyframes authDrift1 { to { transform: translate(-70px, 60px) scale(1.08); } }
@keyframes authDrift2 { to { transform: translate(80px, -50px) scale(1.05); } }
@keyframes authDrift3 { to { transform: translate(-90px, -70px) scale(1.12); } }
.auth-bg .ring { position: absolute; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 50%; }
.auth-bg .ring-1 { width: 190px; height: 190px; left: 8%; top: 16%; animation: authRingPulse 9s ease-in-out infinite; }
.auth-bg .ring-2 { width: 110px; height: 110px; right: 11%; top: 62%; border-style: dashed; animation: authSpin 44s linear infinite; }
@keyframes authRingPulse {
	0%, 100% { transform: scale(1); opacity: .8; }
	50% { transform: scale(1.14); opacity: .35; }
}
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-bg .bg-mark {
	position: absolute;
	right: -70px;
	bottom: -80px;
	width: 440px;
	opacity: .07;
	filter: brightness(0) invert(1);
	transform: rotate(-10deg);
	animation: authMarkBob 14s ease-in-out infinite alternate;
}
@keyframes authMarkBob { to { transform: rotate(-6deg) translateY(-18px); } }

.auth-card {
	position: relative;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, .65);
	border-radius: 30px;
	padding: 30px 26px 26px;
	box-shadow: 0 40px 90px -32px rgba(4, 38, 84, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
	animation: authCardIn .65s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes authCardIn {
	from { opacity: 0; transform: translateY(30px) scale(.96); }
	to { opacity: 1; transform: none; }
}

/* top bar: back + progress (signup stages only) */
.auth-topbar { display: none; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-topbar.active { display: flex; }
.auth-back {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	border: 0;
	background: #eef5fd;
	color: #38609a;
	font-size: 13px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.auth-back:hover { background: #e0edfb; transform: translateX(-1px); }
.auth-progress { flex: 1; height: 6px; border-radius: 99px; background: #e8f0fa; overflow: hidden; }
.auth-progress i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: linear-gradient(90deg, #1273e0, #48a9f8);
	transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.auth-step-count { font-size: 12px; font-weight: 700; color: #9ab0cc; letter-spacing: .02em; white-space: nowrap; }

/* identity chip */
.identity-chip {
	display: none;
	align-items: center;
	gap: 10px;
	background: #f2f8fe;
	border: 1px solid #ddecfb;
	border-radius: 99px;
	padding: 7px 7px 7px 16px;
	margin-bottom: 20px;
	animation: authSlideIn .3s ease both;
}
.identity-chip.active { display: flex; }
.identity-chip .chip-ico { color: #1273e0; font-size: 14px; flex-shrink: 0; }
.identity-chip .chip-value {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	font-size: 14px;
	color: #22334d;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.identity-chip .chip-change {
	flex-shrink: 0;
	background: #fff;
	border-radius: 99px;
	padding: 7px 14px;
	font-size: 12.5px;
	font-weight: 700;
	color: #1273e0;
	box-shadow: 0 1px 4px rgba(10, 60, 130, .14);
	transition: transform .15s, box-shadow .15s;
}
.identity-chip .chip-change:hover { color: #0c5cb8; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(10, 60, 130, .18); }
/* once signed in (link-phone step) changing the identifier makes no sense */
.identity-chip.no-change { padding-right: 16px; }
.identity-chip.no-change .chip-change { display: none; }

/* steps - each active step's children rise in with a small stagger */
.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-step.active > *,
.forgot-step.active > * { animation: authRise .5s cubic-bezier(.22, 1, .36, 1) both; }
.auth-step.active > *:nth-child(2),
.forgot-step.active > *:nth-child(2) { animation-delay: .06s; }
.auth-step.active > *:nth-child(3),
.forgot-step.active > *:nth-child(3) { animation-delay: .11s; }
.auth-step.active > *:nth-child(4),
.forgot-step.active > *:nth-child(4) { animation-delay: .16s; }
.auth-step.active > *:nth-child(5),
.forgot-step.active > *:nth-child(5) { animation-delay: .21s; }
.auth-step.active > *:nth-child(6),
.forgot-step.active > *:nth-child(6) { animation-delay: .26s; }
.auth-step.active > *:nth-child(7),
.forgot-step.active > *:nth-child(7) { animation-delay: .31s; }
.auth-step.active > *:nth-child(8),
.forgot-step.active > *:nth-child(8) { animation-delay: .36s; }
@keyframes authRise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
@keyframes authSlideIn {
	from { opacity: 0; transform: translateX(26px); }
	to { opacity: 1; transform: none; }
}

/* brand tile - the actual Tutorio mark */
.auth-brand-tile {
	width: 64px;
	height: 64px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #fff, #f2f9ff);
	border: 1px solid #dcecfc;
	box-shadow: 0 16px 32px -14px rgba(33, 150, 243, .55), 0 0 0 7px rgba(33, 150, 243, .07);
	margin-bottom: 18px;
	animation: authLogoFloat 5.5s ease-in-out infinite;
}
.auth-brand-tile img { width: 38px; height: 38px; object-fit: contain; }
@keyframes authLogoFloat {
	0%, 100% { transform: none; }
	50% { transform: translateY(-5px); }
}
.auth-ico {
	width: 54px;
	height: 54px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	color: #fff;
	background: linear-gradient(135deg, #1273e0, #48a9f8);
	box-shadow: 0 12px 26px -10px rgba(18, 115, 224, .6);
	margin-bottom: 16px;
}
.auth-title { font-size: 24px; font-weight: 800; color: #10203a; margin: 0 0 6px; letter-spacing: -.01em; }
.auth-sub { font-size: 14.5px; line-height: 1.55; color: #64748f; margin: 0 0 22px; }

/* fields */
.auth-field { margin-bottom: 12px; }
.auth-v2 .auth-card .form-control {
	width: 100%;
	height: auto;
	background: #f5f9fe;
	border: 1.5px solid #e2ecf8;
	border-radius: 16px;
	padding: 15px 18px;
	font-size: 16px;
	font-weight: 500;
	color: #142137;
	box-shadow: none;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.auth-v2 .auth-card .form-control::placeholder { color: #9fadc4; font-weight: 400; }
.auth-v2 .auth-card .form-control:focus { background: #fff; border-color: #2196f3; box-shadow: 0 0 0 4px rgba(33, 150, 243, .15); }
.auth-v2 .auth-card .form-control.invalid { border-color: #ef4453; box-shadow: 0 0 0 4px rgba(239, 68, 83, .12); animation: authShake .3s; }
@keyframes authShake {
	0%, 100% { transform: none; }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}
.name-row { display: flex; gap: 10px; }
.name-row .auth-field { flex: 1; min-width: 0; }

/* password */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 54px; }
.pw-toggle {
	position: absolute;
	right: 9px;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #9fadc4;
	font-size: 15px;
	cursor: pointer;
}
.pw-toggle:hover { color: #1273e0; }
.pw-reqs { display: none; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pw-reqs.active { display: flex; }
.pw-reqs span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #7e91ad;
	background: #eef4fb;
	border-radius: 99px;
	padding: 6px 12px;
	transition: all .2s;
}
.pw-reqs span i { font-size: 10px; }
.pw-reqs span.ok { color: #0f9b60; background: #e2f7ec; }
#forgot-link { display: none; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; color: #1273e0; }
#forgot-link:hover { color: #0c5cb8; }

#link-phone-value { color: #1273e0; font-weight: 700; }
#link-skip { display: block; margin-top: 16px; text-align: center; font-size: 14px; font-weight: 700; color: #64748b; }
#link-skip:hover { color: #1273e0; }

/* country picker - flag tiles with a check badge on the chosen one */
.country-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.country-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 62px;
	padding: 10px 32px 10px 11px;
	background: #f7faff;
	border: 1.5px solid #e3ecf8;
	border-radius: 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: #2c3e5f;
	cursor: pointer;
	margin: 0;
	-webkit-tap-highlight-color: transparent;
	transition: background .18s, border-color .18s, box-shadow .18s, transform .18s, color .18s;
}
.country-opt span { min-width: 0; }
.country-opt:hover { border-color: #b9dcfa; background: #eef6fe; transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(15, 104, 212, .45); }
.country-opt:hover .country-flag { transform: scale(1.06) rotate(-2deg); }
.country-opt:active { transform: scale(.985); }
.country-opt input { position: absolute; opacity: 0; pointer-events: none; }
.country-flag {
	flex: none;
	width: 36px;
	height: 26px;
	object-fit: cover;
	border-radius: 7px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 3px 8px -2px rgba(15, 23, 42, .28);
	transition: transform .18s, box-shadow .18s;
}
/* check badge */
.country-opt::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #1273e0, #48a9f8);
	background-size: 11px 11px, auto;
	background-position: center, center;
	background-repeat: no-repeat;
	box-shadow: 0 4px 10px -3px rgba(18, 115, 224, .7);
	opacity: 0;
	transform: scale(.4);
	transition: opacity .18s, transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.country-opt.sel,
.country-opt:has(input:checked) {
	background: linear-gradient(135deg, #eaf4fe, #f4f9ff);
	border-color: #2196f3;
	color: #0b64ba;
	box-shadow: 0 0 0 1px #2196f3 inset, 0 12px 26px -16px rgba(33, 150, 243, .6);
}
.country-opt.sel::after,
.country-opt:has(input:checked)::after { opacity: 1; transform: none; }
.country-opt.sel .country-flag,
.country-opt:has(input:checked) .country-flag {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(33, 150, 243, .55), 0 4px 10px -2px rgba(18, 115, 224, .4);
}

/* error, cta, terms */
.auth-error {
	display: none;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	padding: 11px 14px;
	border-radius: 14px;
	background: rgba(229, 72, 77, .08);
	border: 1px solid rgba(229, 72, 77, .22);
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 600;
	color: #cf3a42;
}
.auth-error::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background: #e5484d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 3v3.6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='8.9' r='.95' fill='%23fff'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.auth-error.show { display: flex; animation: authErrorIn .3s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes authErrorIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
.auth-cta {
	position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
	margin-top: 22px;
	border: 0;
	border-radius: 16px;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .01em;
	color: #fff;
	background: linear-gradient(135deg, #0f68d4 0%, #2196f3 55%, #48a9f8 100%);
	background-size: 180% 100%;
	background-position: 0 0;
	box-shadow: 0 16px 32px -12px rgba(15, 104, 212, .65);
	cursor: pointer;
	transition: transform .15s, box-shadow .2s, background-position .45s;
}
.auth-cta::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -70%;
	width: 45%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}
.auth-cta:hover { color: #fff; transform: translateY(-1px); background-position: 90% 0; box-shadow: 0 20px 38px -12px rgba(15, 104, 212, .75); }
.auth-cta:hover::after { left: 130%; }
.auth-cta:active { transform: translateY(1px) scale(.99); }
.auth-terms { display: none; margin: 16px 6px 0; text-align: center; font-size: 12.5px; line-height: 1.6; color: #93a4bd; }
.auth-terms.active { display: block; }
.auth-terms a { color: #1273e0; font-weight: 700; }

/* in-card secondary links */
.auth-link-row { margin-top: 16px; text-align: center; }
.auth-link-row a { font-size: 13.5px; font-weight: 700; color: #1273e0; }
.auth-link-row a:hover { color: #0c5cb8; }

/* glass pill below the card (e.g. "Create an account") */
.auth-alt-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	font-weight: 700;
	font-size: 14.5px;
	transition: background .15s, transform .15s;
	animation: authCardIn .65s cubic-bezier(.22, 1, .36, 1) .12s both;
}
.auth-alt-action:hover { background: rgba(255, 255, 255, .22); color: #fff; transform: translateY(-1px); }

/* join-a-tutor card (invite links) */
.auth-v2 .join-tutor-card {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	animation: authCardIn .55s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-v2 .join-tutor-card .join-tutor-avatar { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.auth-v2 .join-tutor-card .join-tutor-label { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.auth-v2 .join-tutor-card .join-tutor-name { font-weight: 700; font-size: 16px; color: #fff; }

/* social sign-in (app only) */
.auth-social { margin-top: 22px; }
.auth-social .saprate-row {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #93a4bd;
	font-size: 12.5px;
	font-weight: 600;
	margin-bottom: 14px;
}
.auth-social .saprate-row::before,
.auth-social .saprate-row::after { content: ""; flex: 1; height: 1px; background: #e2ecf8; }
.auth-social .social-btn-row { display: flex; gap: 10px; }
.auth-social .social-btn-row .social-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	background: #f5f9fe;
	border: 1.5px solid #e2ecf8;
	border-radius: 16px;
	transition: transform .15s, border-color .15s, box-shadow .15s;
}
.auth-social .social-btn-row .social-btn:hover { transform: translateY(-2px); border-color: #b9dcfa; box-shadow: 0 10px 20px -12px rgba(15, 104, 212, .4); }
.auth-social .social-btn-row .social-btn img { width: 24px; height: 24px; }

/* Dark mode: theme.css's generic card hammer flips the card surface dark,
   but the card's own white border and inset top highlight stay white and
   trace a bright rim around the rounded corners - replace them here. */
html[data-theme="dark"] .auth-card {
	background: rgba(17, 26, 46, .92);
	border-color: var(--tt-line, #263450);
	box-shadow: 0 40px 90px -32px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* …but every control inside the card hardcodes its light palette, so the
   chip, inputs, country pills etc. stay white on the dark surface. Flip
   them onto the shared --tt-* scale. */
html[data-theme="dark"] .auth-back {
	background: var(--tt-surface-2, #17233b);
	color: var(--tt-muted, #94a3b8);
}
html[data-theme="dark"] .auth-back:hover { background: var(--tt-surface-3, #1e2c48); }
html[data-theme="dark"] .auth-progress { background: var(--tt-surface-2, #17233b); }
html[data-theme="dark"] .auth-step-count { color: var(--tt-muted, #94a3b8); }
html[data-theme="dark"] .identity-chip {
	background: var(--tt-surface-2, #17233b);
	border-color: var(--tt-line, #263450);
}
html[data-theme="dark"] .identity-chip .chip-ico { color: #48a9f8; }
html[data-theme="dark"] .identity-chip .chip-value { color: var(--tt-ink, #e6ebf5); }
html[data-theme="dark"] .identity-chip .chip-change {
	background: var(--tt-surface-3, #1e2c48);
	color: #48a9f8;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .identity-chip .chip-change:hover { color: #6cc4ff; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .auth-brand-tile {
	background: linear-gradient(180deg, var(--tt-surface-2, #17233b), var(--tt-surface, #111a2e));
	border-color: var(--tt-line, #263450);
	box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .6), 0 0 0 7px rgba(33, 150, 243, .08);
}
html[data-theme="dark"] .auth-title { color: var(--tt-ink, #e6ebf5); }
html[data-theme="dark"] .auth-sub { color: var(--tt-muted, #94a3b8); }
html[data-theme="dark"] .auth-v2 .auth-card .form-control {
	background: var(--tt-surface-2, #17233b);
	border-color: var(--tt-line, #263450);
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .auth-v2 .auth-card .form-control::placeholder { color: var(--tt-muted, #94a3b8); }
html[data-theme="dark"] .auth-v2 .auth-card .form-control:focus {
	background: var(--tt-surface, #111a2e);
	border-color: #2196f3;
	box-shadow: 0 0 0 4px rgba(33, 150, 243, .2);
}
html[data-theme="dark"] .pw-reqs span {
	color: var(--tt-muted, #94a3b8);
	background: var(--tt-surface-2, #17233b);
}
html[data-theme="dark"] .pw-reqs span.ok { color: #34d399; background: rgba(16, 185, 129, .14); }
html[data-theme="dark"] #forgot-link,
html[data-theme="dark"] .auth-link-row a,
html[data-theme="dark"] .auth-terms a,
html[data-theme="dark"] #link-phone-value { color: #48a9f8; }
html[data-theme="dark"] #forgot-link:hover,
html[data-theme="dark"] .auth-link-row a:hover { color: #6cc4ff; }
html[data-theme="dark"] #link-skip { color: var(--tt-muted, #94a3b8); }
html[data-theme="dark"] #link-skip:hover { color: #48a9f8; }
html[data-theme="dark"] .country-opt {
	background: var(--tt-surface-2, #17233b);
	border-color: var(--tt-line, #263450);
	color: var(--tt-ink, #e6ebf5);
}
html[data-theme="dark"] .country-opt:hover {
	background: var(--tt-surface-3, #1e2c48);
	border-color: var(--tt-line-strong, #33436a);
	box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .country-opt.sel,
html[data-theme="dark"] .country-opt:has(input:checked) {
	background: linear-gradient(135deg, rgba(33, 150, 243, .22), rgba(33, 150, 243, .1));
	border-color: #2196f3;
	color: #8fd3ff;
	box-shadow: 0 0 0 1px #2196f3 inset, 0 12px 26px -16px rgba(33, 150, 243, .55);
}
html[data-theme="dark"] .country-flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 3px 8px -2px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .country-opt.sel .country-flag,
html[data-theme="dark"] .country-opt:has(input:checked) .country-flag {
	box-shadow: 0 0 0 2px var(--tt-surface, #111a2e), 0 0 0 3.5px rgba(33, 150, 243, .6), 0 4px 10px -2px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .auth-error {
	background: rgba(239, 68, 83, .13);
	border-color: rgba(239, 68, 83, .32);
	color: #ff8a91;
}
html[data-theme="dark"] .auth-social .saprate-row::before,
html[data-theme="dark"] .auth-social .saprate-row::after { background: var(--tt-line, #263450); }
html[data-theme="dark"] .auth-social .social-btn-row .social-btn {
	background: var(--tt-surface-2, #17233b);
	border-color: var(--tt-line, #263450);
}
html[data-theme="dark"] .auth-social .social-btn-row .social-btn:hover {
	border-color: var(--tt-line-strong, #33436a);
	box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6);
}
/* Apple's logo is a black PNG - flip it to white on dark surfaces. Google's stays multicolour. */
html[data-theme="dark"] .auth-social .social-btn-row .social-btn img[alt="Sign in with Apple"] { filter: invert(1); }

@media (max-width: 390px) {
	.auth-card { padding: 22px 18px 20px; border-radius: 24px; }
	.auth-title { font-size: 22px; }
	.auth-bg .ring-1 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.auth-v2 *,
	.auth-v2 *::before,
	.auth-v2 *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ---- Acceptable-use notice under the auth card (component.AcceptableUseNotice) ---- */
.auth-aup {
	max-width: 520px; margin: 18px auto 28px; padding: 12px 16px;
	display: flex; gap: 12px; align-items: flex-start;
	background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
	border-radius: 12px; color: rgba(255,255,255,0.86); font-size: 12.5px; line-height: 1.55;
	backdrop-filter: blur(6px);
}
.auth-aup i { flex: 0 0 auto; margin-top: 2px; color: #b3e5fc; }
.auth-aup a { color: #fff; text-decoration: underline; }
.auth-aup strong { color: #fff; }
