#seamless-auth-modal {
	z-index: 1093;
}

.seamless-auth-backdrop {
	z-index: 1092 !important;
}

.seamless-auth-backdrop.show {
	opacity: 0.5 !important;
}

#seamless-auth-modal .d-none {
	display: none !important;
}

.seamless-auth-dialog {
	max-width: 461px;
	width: calc(100% - 32px);
	margin: 0;
	min-height: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) !important;
}

/* Suppress BS4's ::before height-trick — replaced by absolute centering above */
.seamless-auth-dialog::before {
	display: none;
}

.seamless-auth-content {
	/* colors */
	--sa-text: #000000;            /* primary text */
	--sa-text-muted: #858585;      /* desc / terms */
	--sa-teal: #58C3C4;            /* links, focus */
	--sa-purple: #483387;          /* perks */
	--sa-amber: #FDB813;           /* primary CTA */
	--sa-error: #EC5C54;
	--sa-white: #ffffff;
	--sa-border: #E7E7E7;          /* input borders */
	--sa-otp-border: #D4D4D4;      /* otp box underline */
	--sa-selection: #D6EBFF;       /* otp select-all highlight */
	--sa-hover-bg: #FAFAFA;        /* secondary button hover */
	--sa-placeholder: #ADADAD;
	--sa-icon-muted: #787D9C;      /* password toggle */
	--sa-disabled-text: #A9A9A9;
	--sa-disabled-bg: #EDEDED;
	--sa-shadow-navy: 11, 17, 52;  /* brand navy, used via rgba() */

	/* type */
	--sa-font-medium: 'CeraProMedium', sans-serif;

	/* radius */
	--sa-radius-card: 24px;
	--sa-radius-pill: 40px;        /* all pill fields/buttons */

	/* entry step padding */
	--sa-step-padding: 48px 32px 32px;

	/* motion */
	--sa-transition: .15s;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 445px;
	margin: 0 auto;
	border-radius: var(--sa-radius-card);
	padding: 24px;
	box-shadow: 0 8px 40px rgba(var(--sa-shadow-navy), 0.16);
	border: none;
	transition: all 0.1s;
}

.seamless-auth-content.is-entry,
.seamless-auth-content.is-login {
	max-width: 461px;
	padding: var(--sa-step-padding);
}

.seamless-auth-logo {
	text-align: center;
	margin-bottom: 16px;
}

.seamless-auth-logo img {
	width: 63px;
	height: 32px;
}

#seamless-auth-body,
#seamless-auth-inline-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	text-align: center;
}

.seamless-auth-title,
.seamless-auth-subtitle {
	margin: 0;
	font-family: var(--sa-font-medium);
	font-weight: 500;
	color: var(--sa-text);
}

.seamless-auth-title {
	font-size: 24px;
	line-height: 30px;
}

.seamless-auth-title-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.seamless-auth-desc,
.seamless-auth-terms {
	margin: 0;
	font-size: 14px;
	line-height: 21px;
	color: var(--sa-text-muted);
}

.seamless-auth-perks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.seamless-auth-perk {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	font-size: 16px;
	line-height: 20px;
	color: var(--sa-purple);
}

.seamless-auth-perk svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.seamless-auth-input {
	width: 100%;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--sa-border);
	border-radius: var(--sa-radius-pill);
	font-size: 16px;
	line-height: 20px;
	color: var(--sa-text);
	text-align: left;
	background: var(--sa-white);
	outline: none;
	transition: border-color var(--sa-transition);
}

.seamless-auth-input::placeholder {
	color: var(--sa-placeholder);
}

.seamless-auth-input:focus {
	border-color: var(--sa-teal);
}

.seamless-auth-input.is-error {
	color: var(--sa-error);
}

.seamless-auth-input[type="password"] {
	letter-spacing: 3px;
}

.seamless-auth-input[type="password"]:placeholder-shown {
	letter-spacing: normal;
}

.seamless-auth-input:disabled,
.seamless-auth-otp-box:disabled {
	opacity: .6;
	cursor: not-allowed;
}

#seamless-auth-name-input,
.seamless-auth-email-password-row {
	margin-top: -8px;
}

#seamless-auth-login-email {
	margin-bottom: 8px;
}

.seamless-auth-phone-wrap {
	position: relative;
}

.seamless-auth-phone-prefix {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	line-height: 20px;
	color: var(--sa-text);
	pointer-events: none;
}

.seamless-auth-phone-input {
	padding-left: 54px;
}

.seamless-auth-error {
	margin: 4px 0 0;
	font-size: 16px;
	line-height: 20px;
	color: var(--sa-error);
	text-align: left;
}

.seamless-auth-general-error {
	margin-top: -16px;
	text-align: center;
}

.seamless-auth-content.is-success {
	padding-top: 32px;
	padding-bottom: 32px;
}

.seamless-auth-content.is-form-step {
	padding: var(--sa-step-padding);
}

.seamless-auth-content.is-email-sent {
	padding: 32px 24px;
}

.seamless-auth-input-wrap {
	position: relative;
}

.seamless-auth-password-toggle {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	cursor: pointer;
	color: var(--sa-icon-muted);
	display: inline-flex;
}

.seamless-auth-password-toggle svg {
	width: 20px;
	height: 20px;
}

.seamless-auth-password-toggle .seamless-auth-eye {
	display: none;
}

.seamless-auth-password-toggle.is-visible .seamless-auth-eye-off {
	display: none;
}

.seamless-auth-password-toggle.is-visible .seamless-auth-eye {
	display: block;
}

.seamless-auth-email-sent {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	color: var(--sa-text);
}

.seamless-auth-teal,
.seamless-auth-terms a {
	color: var(--sa-teal);
}

.seamless-auth-login-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.seamless-auth-forgot {
	align-self: flex-end;
	color: var(--sa-teal) !important;
	line-height: 20px;
	font-size: 16px;
}

.seamless-auth-login-form .seamless-auth-btn {
	margin-top: 16px;
}

.seamless-auth-login-form .seamless-auth-error {
	margin-top: 0;
}

.seamless-auth-forgot.is-disabled,
.seamless-auth-password-toggle.is-disabled,
.seamless-auth-link.is-disabled {
	pointer-events: none;
	opacity: .5;
}

.seamless-auth-success-check {
	align-self: center;
}

.seamless-auth-subtitle {
	font-size: 16px;
	line-height: 20px;
}

.seamless-auth-otp-row {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.seamless-auth-otp-box {
	width: 44px;
	height: 46px;
	border: none;
	border-bottom: 2px solid var(--sa-otp-border);
	background: transparent;
	text-align: center;
	font-family: var(--sa-font-medium);
	font-weight: 500;
	font-size: 16px;
	color: var(--sa-text);
	outline: none;
	padding: 0;
	transition: border-color var(--sa-transition);
}

.seamless-auth-otp-box:focus,
.seamless-auth-otp-box.filled {
	border-bottom-color: var(--sa-teal);
}

.seamless-auth-otp-box.selected {
	background: var(--sa-selection);
	border-bottom-color: var(--sa-teal);
}

.seamless-auth-otp-row.is-error .seamless-auth-otp-box {
	border-bottom-color: var(--sa-error);
}

.seamless-auth-otp-error,
.seamless-auth-info {
	margin: 0 4px 0;
	text-align: center;
}

.seamless-auth-otp-error {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.seamless-auth-otp-error-icon {
	flex: none;
}

.seamless-auth-otp-error-text {
	text-align: left;
	font-size: 14px;
}

.seamless-auth-info {
	font-size: 13px;
	color: var(--sa-text-muted);
}

.seamless-auth-btn,
.seamless-auth-secondary-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	font-family: var(--sa-font-medium);
	font-weight: 500;
	color: var(--sa-text);
	cursor: pointer;
	border: none;
}

.seamless-auth-btn {
	height: 48px;
	background: var(--sa-amber);
	border-radius: var(--sa-radius-pill);
	font-size: 18px;
	transition: opacity var(--sa-transition);
}

.seamless-auth-btn:hover {
	color: var(--sa-text);
	opacity: .92;
}

.seamless-auth-btn[disabled], .seamless-auth-btn[disabled]:hover {
	cursor: default;
	opacity: .5;
}

.seamless-auth-secondary-btn {
	min-height: 44px;
	background: var(--sa-white);
	border-radius: 100px;
	font-size: 16px;
	line-height: 19px;
	box-shadow: 0px 2px 12px 0px rgba(var(--sa-shadow-navy), 0.15);
	padding: 12px 16px;
}

.seamless-auth-secondary-btn:hover {
	background: var(--sa-hover-bg);
}

.seamless-auth-secondary-btn svg {
	width: 19px;
	height: 19px;
	flex: none;
}

.seamless-auth-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: center;
	font-family: var(--sa-font-medium);
	font-size: 16px;
	line-height: 24px;
	color: var(--sa-teal);
	cursor: pointer;
	text-decoration: none;
}

.seamless-auth-link:hover {
	color: var(--sa-teal);
	opacity: .9;
	text-decoration: none;
}

.seamless-auth-link svg {
	width: 24px;
	height: 24px;
}

.seamless-auth-link.is-disabled {
	cursor: default;
}

#seamless-auth-otp-resend.is-disabled {
	color: var(--sa-placeholder);
	opacity: 1;
}

.seamless-auth-dismiss-button {
	margin: 12px 0;
}

@media (max-width: 576px) {
	.seamless-auth-secondary-btn {
		font-size: 14px;
	}

	.seamless-auth-otp-box {
		width: 24px;
	}

	#seamless-auth-body {
		gap: 16px;
	}

	.seamless-auth-logo {
		margin-bottom: 12px;
	}

	.seamless-auth-logo img {
		width: 47px;
		height: 24px;
		margin-top: 8px;
	}

	.seamless-auth-content {
		padding: 16px !important
	}

	.seamless-auth-title {
		font-size: 19px;
		line-height: 24px;
	}

	.seamless-auth-general-error {
		margin-top: -8px;
	}
}
