/* UIX-035: Zepto-style split-card Unified Mobile Login & Non-Closable Onboarding Popup (400/500 weights). */

.tc-ap-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(18, 28, 22, 0.56);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
	font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 400;
	color: #262A2E;
}

.tc-ap-backdrop[hidden] {
	display: none !important;
}

.tc-ap-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.tc-ap-backdrop [hidden] {
	display: none !important;
}

body.tc-ap-open {
	overflow: hidden;
}

.tc-ap-dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
	width: 100%;
	max-width: 820px;
	min-height: 508px;
	max-height: calc(100vh - 36px);
	overflow: hidden;
	border-radius: 26px;
	background: #FFFFFF;
	border: 1px solid rgba(230, 230, 225, 0.9);
	box-shadow: 0 32px 72px -18px rgba(15, 23, 42, 0.34), 0 8px 24px -8px rgba(15, 23, 42, 0.14);
	transform: translateY(14px) scale(0.975);
	transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.tc-ap-backdrop.is-open .tc-ap-dialog {
	transform: translateY(0) scale(1);
}

/* ---------- Left Showcase & Infographic Column ---------- */
.tc-ap-showcase {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: linear-gradient(180deg, #FEF2E4 0%, #FDEAD6 100%);
	border-right: 1px solid #F2E3D4;
	overflow: hidden;
	min-height: 100%;
}

.tc-ap-showcase-head {
	position: relative;
	z-index: 2;
	padding: 28px 28px 8px;
	display: grid;
	gap: 12px;
}

.tc-ap-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.tc-ap-logo-img {
	display: block;
	height: 30px;
	width: auto;
	object-fit: contain;
}

.tc-ap-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #0AAD0B;
	color: #FFFFFF;
}

.tc-ap-brand-name {
	font-size: 1.18rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: #1E3A2A;
}

.tc-ap-brand-headline {
	margin: 0;
	font-size: 1.56rem;
	line-height: 1.24;
	letter-spacing: -0.025em;
	font-weight: 500;
	color: #1E3A2A;
	max-width: 16ch;
}

.tc-ap-highlight {
	color: #0AAD0B;
	font-weight: 500;
}

.tc-ap-showcase-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 2px;
}

.tc-ap-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(10, 173, 11, 0.16);
	color: #1E3A2A;
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.tc-ap-chip svg {
	color: #0AAD0B;
	flex: none;
}

.tc-ap-art-wrap {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	margin-top: -18px;
	min-height: 220px;
	overflow: hidden;
}

.tc-ap-art-img {
	display: block;
	width: 100%;
	max-width: 376px;
	height: auto;
	object-fit: cover;
	object-position: center bottom;
	-webkit-mask-image: radial-gradient(ellipse 92% 88% at 50% 62%, #000000 54%, transparent 98%);
	mask-image: radial-gradient(ellipse 92% 88% at 50% 62%, #000000 54%, transparent 98%);
}

/* ---------- Right Authentication Panel ---------- */
.tc-ap-main {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px 30px 28px;
	background: #FFFFFF;
	overflow-y: auto;
}

.tc-ap-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 36px;
	margin-bottom: 8px;
}

.tc-ap-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid #E5E7EB;
	background: #FFFFFF;
	color: #4B5563;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.tc-ap-close-btn {
	margin-left: auto;
}

.tc-ap-icon-btn:hover {
	background: #F4F6F4;
	border-color: #CBD5CE;
	color: #111827;
}

.tc-ap-icon-btn:focus-visible {
	outline: 2px solid #0AAD0B;
	outline-offset: 2px;
}

.tc-ap-stage-host {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tc-ap-header {
	display: grid;
	gap: 6px;
	margin-bottom: 18px;
}

.tc-ap-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	justify-self: start;
	padding: 4px 10px;
	border-radius: 999px;
	background: #EEF9EE;
	color: #088A09;
	font-size: 0.76rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.tc-ap-title {
	margin: 0;
	font-size: 1.44rem;
	line-height: 1.24;
	letter-spacing: -0.02em;
	font-weight: 500;
	color: #1F2937;
}

.tc-ap-subtitle {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.48;
	font-weight: 400;
	color: #5C6370;
}

.tc-ap-alert {
	margin: 0 0 14px;
	padding: 10px 13px;
	border-radius: 12px;
	border: 1px solid #D7EED8;
	background: #F1FAF1;
	color: #1B5E20;
	font-size: 0.86rem;
	line-height: 1.48;
	font-weight: 400;
}

.tc-ap-alert[data-kind="error"] {
	border-color: #FECACA;
	background: #FEF2F2;
	color: #B91C1C;
}

.tc-ap-form {
	display: grid;
	gap: 14px;
}

/* ---------- Mobile Number Input Pill ---------- */
.tc-ap-phone-group {
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 14px;
	border-radius: 14px;
	border: 1.5px solid #D5DDD6;
	background: #FFFFFF;
	transition: border-color 0.16s ease, box-shadow 0.18s ease;
}

.tc-ap-phone-group:focus-within {
	border-color: #0AAD0B;
	box-shadow: 0 0 0 3.5px rgba(10, 173, 11, 0.13);
}

.tc-ap-cc-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.94rem;
	font-weight: 500;
	color: #1F2937;
	flex: none;
}

.tc-ap-in-flag {
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tc-ap-phone-sep {
	width: 1px;
	height: 22px;
	margin: 0 12px;
	background: #E2E6E2;
	flex: none;
}

.tc-ap-phone-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	border: 0;
	background: transparent;
	color: #1F2937;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	outline: none;
}

.tc-ap-phone-input::placeholder {
	color: #9CA3AF;
	font-weight: 400;
	letter-spacing: 0;
}

/* ---------- Generic Text/Email/Password Fields ---------- */
.tc-ap-field {
	display: grid;
	gap: 6px;
}

.tc-ap-field-label {
	font-size: 0.86rem;
	font-weight: 500;
	color: #262A2E;
}

.tc-ap-field-label .required {
	color: #D93025;
}

.tc-ap-pw-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.tc-ap-input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	height: 48px;
	padding: 0 14px;
	border-radius: 13px;
	border: 1.5px solid #D5DDD6;
	background: #FFFFFF;
	color: #1F2937;
	font-size: 0.95rem;
	font-weight: 400;
	transition: border-color 0.16s ease, box-shadow 0.18s ease;
}

.tc-ap-pw-wrap .tc-ap-input {
	padding-right: 68px;
}

.tc-ap-input:focus {
	outline: none;
	border-color: #0AAD0B;
	box-shadow: 0 0 0 3.5px rgba(10, 173, 11, 0.13);
}

.tc-ap-pw-toggle {
	position: absolute;
	right: 10px;
	padding: 5px 10px;
	border: 0;
	border-radius: 8px;
	background: #F4F5F4;
	color: #4B5563;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
}

.tc-ap-pw-toggle:hover {
	background: #E8ECE8;
	color: #1F2937;
}

/* ---------- Primary CTA ---------- */
.tc-ap-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 14px;
	border: 0;
	font-size: 0.96rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease, opacity 0.16s ease;
}

.tc-ap-btn-primary {
	background: #0AAD0B;
	color: #FFFFFF;
	box-shadow: 0 8px 18px -6px rgba(10, 173, 11, 0.42);
}

.tc-ap-btn-primary:hover:not(:disabled) {
	background: #089409;
	transform: translateY(-1px);
}

.tc-ap-btn-primary:active:not(:disabled) {
	transform: translateY(0);
}

.tc-ap-btn:disabled {
	opacity: 0.52;
	cursor: not-allowed;
	box-shadow: none;
}

.tc-ap-spinner {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #FFFFFF;
	animation: tcApSpin 0.72s linear infinite;
}

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

.tc-ap-legal {
	margin: 14px 0 0;
	font-size: 0.78rem;
	line-height: 1.5;
	text-align: center;
	color: #6B7280;
}

.tc-ap-legal a {
	color: #0AAD0B;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tc-ap-promise-card {
	margin-top: 22px;
	padding: 13px 15px;
	border-radius: 14px;
	background: #FAFAF8;
	border: 1px solid #ECECE6;
	text-align: center;
}

.tc-ap-promise-title {
	margin: 0 0 3px;
	font-size: 0.84rem;
	font-weight: 500;
	color: #262A2E;
}

.tc-ap-promise-meta {
	margin: 0;
	font-size: 0.76rem;
	color: #666B70;
}

/* ---------- Summary Pill & Inline Links ---------- */
.tc-ap-summary-pill {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
	padding: 9px 13px;
	border-radius: 12px;
	background: #F6F8F5;
	border: 1px solid #E4EBE3;
	font-size: 0.86rem;
	font-weight: 500;
	color: #1F2937;
}

.tc-ap-test-badge {
	padding: 3px 9px;
	border-radius: 999px;
	background: #EAF8EA;
	color: #088A09;
	font-size: 0.73rem;
	font-weight: 500;
}

.tc-ap-inline-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: #0AAD0B;
	font-size: 0.84rem;
	font-weight: 500;
	cursor: pointer;
}

.tc-ap-inline-link:hover:not(:disabled) {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tc-ap-inline-link:disabled {
	color: #9CA3AF;
	cursor: not-allowed;
}

/* ---------- Three-Channel Selector Cards ---------- */
.tc-ap-channel-list {
	display: grid;
	gap: 10px;
}

.tc-ap-channel-card {
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	padding: 13px 14px;
	border-radius: 15px;
	border: 1.5px solid #E3E7E2;
	background: #FFFFFF;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s ease, box-shadow 0.18s ease;
}

.tc-ap-channel-card:hover:not(:disabled) {
	border-color: #0AAD0B;
	background: #F9FDF8;
	box-shadow: 0 8px 18px -12px rgba(10, 173, 11, 0.35);
	transform: translateY(-1px);
}

.tc-ap-channel-card:focus-visible {
	outline: 2px solid #0AAD0B;
	outline-offset: 2px;
}

.tc-ap-channel-card:disabled {
	cursor: not-allowed;
	background: #FAFAF8;
	border-color: #ECECE7;
	opacity: 0.68;
}

.tc-ap-channel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	flex: none;
}

.tc-ap-channel-icon--wa {
	background: #EAF9EC;
	color: #0B9A13;
}

.tc-ap-channel-icon--sms {
	background: #FFF3E8;
	color: #E36E0E;
}

.tc-ap-channel-icon--email {
	background: #EEF2FF;
	color: #3749A6;
}

.tc-ap-channel-body {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	gap: 2px;
}

.tc-ap-channel-name {
	font-size: 0.94rem;
	font-weight: 500;
	color: #1F2937;
}

.tc-ap-channel-desc {
	font-size: 0.79rem;
	line-height: 1.38;
	color: #6B7280;
}

.tc-ap-channel-arrow {
	color: #9CA3AF;
	flex: none;
}

/* ---------- OTP Step Slots & Timer Footer ---------- */
.tc-ap-otp-wrap {
	display: grid;
	gap: 8px;
}

.tc-ap-otp-wrap label {
	font-size: 0.86rem;
	font-weight: 500;
	color: #262A2E;
}

.tc-ap-otp-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	font-size: 0.84rem;
	color: #6B7280;
}

.tc-ap-timer {
	font-variant-numeric: tabular-nums;
}

/* ---------- Mobile Responsive Drawer/Sheet ---------- */
@media (max-width: 760px) {
	.tc-ap-backdrop {
		padding: 12px;
		align-items: flex-end;
	}

	.tc-ap-dialog {
		grid-template-columns: 1fr;
		max-width: 460px;
		min-height: 0;
		border-radius: 24px 24px 18px 18px;
	}

	.tc-ap-showcase {
		border-right: 0;
		border-bottom: 1px solid #F2E3D4;
		min-height: 0;
		flex-direction: row;
		align-items: center;
		padding: 14px 18px;
	}

	.tc-ap-showcase-head {
		padding: 0;
		gap: 6px;
		flex: 1 1 auto;
	}

	.tc-ap-logo-img {
		height: 24px;
	}

	.tc-ap-brand-headline {
		font-size: 1.08rem;
		max-width: none;
	}

	.tc-ap-showcase-chips {
		display: none;
	}

	.tc-ap-art-wrap {
		margin-top: 0;
		min-height: 0;
		flex: 0 0 84px;
		height: 84px;
		border-radius: 16px;
	}

	.tc-ap-art-img {
		width: 84px;
		height: 84px;
		-webkit-mask-image: none;
		mask-image: none;
		border-radius: 16px;
	}

	.tc-ap-main {
		padding: 16px 20px 22px;
	}

	.tc-ap-title {
		font-size: 1.24rem;
	}

	.tc-ap-promise-card {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-ap-backdrop,
	.tc-ap-dialog,
	.tc-ap-btn,
	.tc-ap-channel-card,
	.tc-ap-spinner {
		transition: none;
		animation: none;
	}
}
