/**
 * Sundari auth — simple frosted glass card (reference UI).
 */

html:has(body.sundari-login-view),
body.sundari-theme.sundari-login-view {
	height: 100% !important;
	max-height: 100vh !important;
	overflow: hidden !important;
	margin: 0 !important;
	background: #1a0f22 !important;
}

body.sundari-theme.sundari-login-view .sundari-announce,
body.sundari-theme.sundari-login-view .site-header,
body.sundari-theme.sundari-login-view #site-navigation,
body.sundari-theme.sundari-login-view #futurio-floating,
body.sundari-theme.sundari-login-view .sundari-page-hero,
body.sundari-theme.sundari-login-view .sundari-footer,
body.sundari-theme.sundari-login-view .sundari-follow,
body.sundari-theme.sundari-login-view #sundari-back-top,
body.sundari-theme.sundari-login-view .site-footer,
body.sundari-theme.sundari-login-view footer,
body.sundari-theme.sundari-login-view .page-header,
body.sundari-theme.sundari-login-view .entry-header,
body.sundari-theme.sundari-login-view .single-head,
body.sundari-theme.sundari-login-view h1.entry-title,
body.sundari-theme.sundari-login-view h1.single-title,
body.sundari-theme.sundari-login-view .single-title,
body.sundari-theme.sundari-login-view .full-head-img,
body.sundari-theme.sundari-login-view .header-title,
body.sundari-theme.sundari-login-view .breadcrumb,
body.sundari-theme.sundari-login-view .breadcrumbs,
body.sundari-theme.sundari-login-view .sidebar,
body.sundari-theme.sundari-login-view #sidebar,
body.sundari-theme.sundari-login-view aside.widget-area {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.sundari-theme.sundari-login-view #page,
body.sundari-theme.sundari-login-view .futurio-page-wrap,
body.sundari-theme.sundari-login-view #content,
body.sundari-theme.sundari-login-view .site-content,
body.sundari-theme.sundari-login-view .main-container,
body.sundari-theme.sundari-login-view .container,
body.sundari-theme.sundari-login-view .container-fluid,
body.sundari-theme.sundari-login-view .woocommerce,
body.sundari-theme.sundari-login-view #primary,
body.sundari-theme.sundari-login-view .content-area,
body.sundari-theme.sundari-login-view .row,
body.sundari-theme.sundari-login-view article,
body.sundari-theme.sundari-login-view .futurio-content,
body.sundari-theme.sundari-login-view .main-content-page,
body.sundari-theme.sundari-login-view .single-entry-summary,
body.sundari-theme.sundari-login-view .type-page {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	min-height: 0 !important;
}

body.sundari-theme.sundari-login-view .woocommerce-error,
body.sundari-theme.sundari-login-view .woocommerce-message,
body.sundari-theme.sundari-login-view .woocommerce-info {
	position: static;
	margin: 0 0 0.85rem;
	border-radius: 12px;
	font-size: 1.28rem;
	line-height: 1.4;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.sundari-auth__notices:empty {
	display: none;
}

/* Full-bleed atmospheric stage — full page My Account only */
.sundari-auth--page {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow: auto;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(140, 40, 70, 0.55) 0%, transparent 55%),
		radial-gradient(ellipse at 85% 80%, rgba(70, 100, 150, 0.45) 0%, transparent 50%),
		radial-gradient(ellipse at 15% 70%, rgba(90, 30, 100, 0.4) 0%, transparent 45%),
		linear-gradient(160deg, #2a1528 0%, #1a1224 40%, #243048 100%);
}

.sundari-auth {
	color: #fff;
}

.sundari-auth__close {
	position: fixed;
	top: 18px;
	right: 22px;
	z-index: 60;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 28px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.sundari-auth__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
}

/* Frosted glass card */
.sundari-auth__card {
	width: min(380px, 100%);
	padding: 40px 36px 32px;
	border-radius: 36px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(22px) saturate(1.35);
	-webkit-backdrop-filter: blur(22px) saturate(1.35);
	color: #fff;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

.sundari-auth__panel[hidden] {
	display: none !important;
}

.sundari-auth__avatar {
	display: grid;
	place-items: center;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, 0.75);
}

.sundari-auth__avatar--sm {
	margin-bottom: 12px;
}

.sundari-auth__lead {
	margin: 0 0 20px;
	text-align: center;
	font-size: 1.44rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
	font-weight: 400;
}

/* Underline fields — no box/frame around inputs */
.sundari-auth__form,
.sundari-auth form.woocommerce-form-login,
.sundari-auth form.woocommerce-form-register,
.sundari-auth .woocommerce-form {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
}

.sundari-auth__field {
	position: relative;
	display: block;
	margin: 0 0 22px;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.sundari-auth__icon {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	pointer-events: none;
	z-index: 1;
}

.sundari-auth__field input,
.sundari-auth__field--solo input,
.sundari-auth input.woocommerce-Input,
.sundari-auth input.input-text {
	width: 100%;
	height: 44px;
	padding: 0 36px 0 32px;
	border: none !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	font-family: "Poppins", var(--sundari-font-body), sans-serif;
	font-size: 1.68rem;
	font-weight: 400;
	color: #fff !important;
	caret-color: #fff;
	transition: border-color 0.2s ease;
}

.sundari-auth__field--solo input {
	padding-left: 0;
}

.sundari-auth__field input::placeholder {
	color: rgba(255, 255, 255, 0.72);
	font-weight: 300;
}

.sundari-auth__field input:focus,
.sundari-auth__field input:focus-visible {
	border: none !important;
	border-bottom: 1px solid #fff !important;
	outline: none !important;
	box-shadow: none !important;
}

.sundari-auth__field--password .woocommerce-Input {
	padding-right: 8px;
}

/* Chrome paints saved logins light blue and ignores a transparent background; cover it with solid plum so the white text stays readable. */
.sundari-auth input:-webkit-autofill,
.sundari-auth input:-webkit-autofill:hover,
.sundari-auth input:-webkit-autofill:focus,
.sundari-auth input:-webkit-autofill:active {
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	border: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: 0 0 0 1000px #4a265c inset !important;
	transition: background-color 99999s ease-in-out 0s;
	background-color: transparent !important;
	background-image: none !important;
}

/* Hide Edge/Chrome clear (X) + password reveal eye */
.sundari-auth input::-ms-clear,
.sundari-auth input::-ms-reveal,
.sundari-auth input::-webkit-clear-button,
.sundari-auth input::-webkit-reveal-button,
.sundari-auth input::-webkit-credentials-auto-fill-button,
.sundari-auth input::-webkit-strong-password-auto-fill-button {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sundari-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 28px;
	font-size: 1.6rem;
}

.sundari-auth__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	cursor: pointer;
	font-weight: 500;
}

.sundari-auth__check input {
	width: 16px;
	height: 16px;
	accent-color: #e07a9a;
	flex-shrink: 0;
}

.sundari-auth__forgot {
	color: #f2c4d8 !important;
	font-style: normal;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 600;
	font-size: 1.6rem;
}

.sundari-auth__forgot:hover {
	color: #fff !important;
}

/* Gradient pill LOGIN / CREATE ACCOUNT — force white label */
.sundari-auth__cta,
.sundari-auth button.sundari-auth__cta,
.sundari-auth .woocommerce-form-login__submit,
.sundari-auth .woocommerce-form-register__submit,
.sundari-auth-modal .sundari-auth__cta,
.sundari-auth-modal button.button,
body.sundari-theme.sundari-login-view .sundari-auth__cta,
body.sundari-theme .sundari-auth button.sundari-auth__cta,
body.sundari-theme .woocommerce .sundari-auth button.button {
	display: block !important;
	width: 100% !important;
	height: 48px !important;
	margin: 0 0 8px !important;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(90deg, #8b2d4a 0%, #6b3d8c 48%, #4a6fa5 100%) !important;
	background-color: transparent !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-family: "Poppins", var(--sundari-font-body), sans-serif !important;
	font-size: 1.472rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	text-shadow: none !important;
	cursor: pointer !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
	line-height: 48px !important;
	text-align: center !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.sundari-auth__cta:hover,
.sundari-auth button.sundari-auth__cta:hover,
.sundari-auth .woocommerce-form-register__submit:hover,
body.sundari-theme .sundari-auth button.sundari-auth__cta:hover {
	transform: translateY(-1px);
	filter: brightness(1.06);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.sundari-auth__cta--ghost,
body.sundari-theme.sundari-login-view .sundari-auth__cta--ghost {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	box-shadow: none !important;
	line-height: 46px !important;
}

.sundari-auth [hidden],
#sca_verify_otp[hidden],
.sundari-auth__otp-code[hidden] {
	display: none !important;
}

.sundari-auth__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 14px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 1.2rem;
	text-transform: lowercase;
}

.sundari-auth__divider::before,
.sundari-auth__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.22);
}

.sundari-auth__alt {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sundari-auth__alt:has(> :only-child) {
	grid-template-columns: 1fr;
}

.sundari-auth__alt-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 42px;
	margin: 10px 0 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 1.28rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.sundari-auth__alt-btn:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

/* Blue Google CTA — white label + G icon */
.sundari-auth__google-btn,
a.sundari-auth__google-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	margin: 0 0 4px;
	padding: 0 18px;
	box-sizing: border-box;
	border: 0 !important;
	border-radius: 999px !important;
	background: #4285f4 !important;
	background-color: #4285f4 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	font-family: "Poppins", sans-serif !important;
	font-size: 1.44rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	text-transform: none !important;
	box-shadow: 0 8px 20px rgba(66, 133, 244, 0.35);
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sundari-auth__google-btn:hover,
a.sundari-auth__google-btn:hover {
	background: #3367d6 !important;
	background-color: #3367d6 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(66, 133, 244, 0.45);
}

.sundari-auth__google-btn__icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #fff;
}

.sundari-auth__google-svg {
	display: block;
}

.sundari-auth__google-btn__text {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.sundari-auth__google-btn.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.sundari-auth__gicon {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #ea4335 0 25%, #fbbc05 25% 50%, #34a853 50% 75%, #4285f4 75% 100%);
	flex-shrink: 0;
}

.sundari-auth__switch {
	margin: 22px 0 0;
	text-align: center;
	font-size: 1.568rem;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 500;
}

.sundari-auth__link {
	appearance: none;
	border: 0;
	background: none;
	padding: 0;
	margin: 0;
	color: #f2c4d8 !important;
	font-weight: 700;
	font-size: inherit;
	font-family: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sundari-auth__link:hover {
	color: #fff !important;
}

.sundari-auth__phone-wrap {
	display: flex;
	align-items: stretch;
	height: 44px;
	margin-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.sundari-auth__cc {
	display: flex;
	align-items: center;
	padding-right: 10px;
	font-size: 1.68rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

.sundari-auth__phone {
	flex: 1;
	border: 0;
	height: 100%;
	padding: 0;
	font-size: 1.68rem;
	outline: none;
	background: transparent;
	color: #fff;
	font-weight: 300;
}

.sundari-auth__phone::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.sundari-auth__hint[hidden] {
	display: none !important;
}

.sundari-auth__hint:not([hidden]) {
	color: #ffb4b4;
	margin: -12px 0 16px;
	font-size: 1.248rem;
}

/* Register: wider card + two-column fields (no tall scroll on desktop) */
.sundari-auth__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 20px;
}

.sundari-auth__form--register .sundari-auth__field {
	margin-bottom: 18px;
}

.sundari-auth__card:has([data-auth-panel="register"].is-active) {
	width: min(640px, 100%);
}

.sundari-auth--modal:has([data-auth-panel="register"].is-active) {
	max-width: 680px;
}

.sundari-auth--modal:has([data-auth-panel="register"].is-active) .sundari-auth__card {
	width: min(640px, 100%);
}

@media (min-width: 560px) {
	.sundari-auth__grid {
		grid-template-columns: 1fr 1fr;
	}

	.sundari-auth__form--register .sundari-auth__hint {
		grid-column: 1 / -1;
	}
}

.sundari-auth__msg {
	min-height: 1.2em;
	margin: 8px 0 0;
	font-size: 1.28rem;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
}

.sundari-auth__msg.is-error {
	color: #ffb4b4;
}

.sundari-auth__msg.is-ok {
	color: #b8f0d0;
}

.sundari-auth .woocommerce-form-row > label,
.sundari-auth .form-row > label:not(.sundari-auth__check) {
	display: none;
}

@media (max-width: 480px) {
	.sundari-auth--page {
		padding: 16px;
		align-items: flex-start;
		padding-top: 56px;
	}

	.sundari-auth__card {
		padding: 32px 24px 28px;
		border-radius: 28px;
	}

	.sundari-auth__alt {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- */
/* Modal overlay — full-screen blur (not oval)                                */
/* -------------------------------------------------------------------------- */

html.sundari-auth-modal-open,
body.sundari-auth-modal-open {
	overflow: hidden !important;
}

.sundari-auth-modal {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	min-height: 100dvh !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 100000 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 0 !important;
	overflow: hidden !important;
}

.sundari-auth-modal[hidden] {
	display: none !important;
}

.sundari-auth-modal__backdrop {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	min-height: 100dvh !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer;
	z-index: 0;
	/* Solid dim + full-viewport blur — avoid elliptical backdrop artifacts */
	background: rgba(20, 10, 28, 0.55) !important;
	backdrop-filter: blur(16px) !important;
	-webkit-backdrop-filter: blur(16px) !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.sundari-auth--modal {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 420px;
	padding: 24px;
	background: transparent !important;
	pointer-events: none;
	border-radius: 0 !important;
}

.sundari-auth--modal .sundari-auth__card {
	pointer-events: auto;
	width: min(380px, 100%);
	max-height: calc(100vh - 48px);
}

.sundari-auth-modal .woocommerce-error,
.sundari-auth-modal .woocommerce-message,
.sundari-auth-modal .woocommerce-info {
	position: static;
	margin: 0 0 0.85rem;
	border-radius: 12px;
	font-size: 1.28rem;
	line-height: 1.4;
	background: rgba(255, 255, 255, 0.12) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 480px) {
	.sundari-auth--modal {
		padding: 16px;
		align-items: flex-start;
		padding-top: 48px;
	}
}
