/* ===== Card layout ===== */
.se-auth--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 100dvh;
	padding: clamp(16px, 3vw, 44px) 12px;
}

.se-auth__card {
	--se-success-color: var(--e-global-color-a537aee, #22c55e);
	--se-error-color: var(--e-global-color-723a1da, #dc2626);
	--se-auth-header-h: 44px;

	position: relative;
	width: min(640px, 100%);
	padding: calc(var(--se-auth-header-h) + 36px) 2.0em 2.2em;
	/* Visuals come from .se-liquid-glass (glassy-container submodule).
	   Keep only layout here so we don't override global Liquid Glass defaults. */
	border-radius: var(--se-lg-container-radius, 16px);
	transition:
		background .35s,
		border-color .35s,
		box-shadow .35s,
		transform .35s,
		filter .35s;
}

/* View spacing tweaks */
.se-auth__card[data-view="reset-email"],
.se-auth__card[data-view="otp"],
.se-auth__card[data-view="newpass"] {
	padding-top: 4.8em;
}

/* Right-side title in the header area */
.se-auth__top-title {
	position: absolute;
	top: 12px;
	right: 12px;
	height: var(--se-auth-header-h);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 6px;
	max-width: calc(100% - 170px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;

	color: var(--e-global-color-primary, #111827);
	font-family: var(--e-global-typography-secondary-font-family, inherit), Sans-serif;
	font-weight: var(--e-global-typography-secondary-font-weight, 700);
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.02em;
	user-select: none;
	pointer-events: none;
	z-index: 10;
}

/* Title + feedback */
.se-auth__title {
	margin: 0 0 6px;
	text-align: center;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-secondary-font-family, inherit), Sans-serif;
	font-weight: var(--e-global-typography-secondary-font-weight, 700);
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: var(--e-global-typography-secondary-line-height, 1.2em);
}
.se-feedback {
	text-align: center;
	color: var(--e-global-color-primary);
	margin: 0 0 8px;
}
.se-feedback:empty {
	display: none;
}

/* Logo (SVG) */
.se-auth__logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 0 12px;
}
.se-auth__logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.se-auth__logo-link:focus {
	outline: none;
}
.se-auth__logo-link:focus-visible {
	outline: 3px solid color-mix(in srgb, rgba(59,130,246,0.55) 65%, transparent);
	outline-offset: 6px;
	border-radius: 10px;
}
.se-auth__logo img {
	width: min(260px, 68vw);
	height: auto;
	display: block;
}

/* Top button: perfect circle → pill. Arrow fixed; text masked. */
.se-auth__card .se-back {
	position: absolute;
	top: 12px;
	left: 12px;
	display: none;

	min-width: 44px;
	height: 44px;
	padding: 0 16px;

	/* Visuals come from .glassy-btn1 */
	color: var(--e-global-color-primary, #000) !important;
	cursor: pointer;
	z-index: 10;
	overflow: hidden;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	/* Keep consistent with other glassy buttons: no special animations here */
	transition: none !important;
}
.se-auth__card .se-back svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.se-back__label {
	display: inline-block;
	white-space: nowrap;
	max-width: none;
	opacity: 1;
	font-size: 14px;
	line-height: 1;
	transition: none !important;
}

/* Disable the default Liquid Glass hover lift on the back button */
.se-auth__card .se-back.glassy-btn1:hover,
.se-auth__card .se-back.glassy-btn2:hover {
	transform: none !important;
}

/* Afbryd variant (red) for OTP / newpass */
.se-back--cancel {
	/* Keep cancel readable, but don't fight Liquid Glass button styling */
	color: #111827 !important;
}

/* Show button on reset steps; login visibility controlled in JS */
.se-auth__card[data-view="reset-email"] .se-back,
.se-auth__card[data-view="otp"] .se-back,
.se-auth__card[data-view="newpass"] .se-back {
	display: flex;
}



/* ===== Fields ===== */
.se-login {
	max-width: 520px;
	margin: 0 auto;
}
.se-field {
	display: block;
	margin: 14px 0;
}
.se-login .se-field:first-child {
	margin-top: 0;
}
.se-field__label {
	display: block;
	margin: 0 0 8px;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-3afbe65-font-family, inherit), Sans-serif;
	font-weight: var(--e-global-typography-3afbe65-font-weight, 600);
	font-size: var(--e-global-typography-3afbe65-font-size, 16px);
	line-height: 20px;
}
.se-input {
	width: 100%;
	padding: 16px 18px;
	background: var(--se-lg-btn-bg-hover, rgba(255, 255, 255, 0.50));
	backdrop-filter: blur(var(--se-lg-btn-blur, 24px)) saturate(120%);
	-webkit-backdrop-filter: blur(var(--se-lg-btn-blur, 24px)) saturate(120%);
	color: var(--e-global-color-text, #111827);
	border: 1px solid var(--se-lg-btn-border, rgba(255, 255, 255, 0.35)) !important;
	border-radius: var(--se-lg-btn-radius, 10px) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
	outline: none;
}
.se-input::placeholder { opacity: .7; }
.se-input:focus {
	box-shadow:
		0 0 0 4px color-mix(in srgb, rgba(255,255,255,0.55) 55%, transparent),
		inset 0 1px 0 rgba(255,255,255,.35);
}

.se-input.se-input--verified {
	border-color: #22c55e !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 20%, transparent);
}

/* Row */
.se-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: nowrap;
	margin: 8px 0 22px;
}
.se-remember {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
}
.se-remember span,
.se-forgot {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-3afbe65-font-family, inherit), Sans-serif;
	font-weight: var(--e-global-typography-3afbe65-font-weight, 500);
	font-size: clamp(12px, 3.2vw, var(--e-global-typography-3afbe65-font-size, 15px));
	line-height: var(--e-global-typography-text-line-height, 1.5em);
	text-decoration: none;
	white-space: nowrap;
}
.se-forgot {
	margin-left: auto;
}

/* Buttons (only layout/typography; visuals come from .glassy-btn1/.glassy-btn2) */
.se-login .elementor-button {
	width: 100%;
}
.se-login .elementor-button .elementor-button-text {
	color: inherit !important;
	font-size: var(--e-global-typography-accent-font-size);
	line-height: var(--e-global-typography-accent-line-height);
	letter-spacing: var(--e-global-typography-accent-letter-spacing);
	word-spacing: var(--e-global-typography-accent-word-spacing);
	font-family: var(--e-global-typography-accent-font-family), Sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight);
	text-transform: var(--e-global-typography-accent-text-transform);
	font-style: var(--e-global-typography-accent-font-style);
	text-decoration: var(--e-global-typography-accent-text-decoration);
}

/* Ensure readable text on milky glass buttons (Elementor themes often default to white text) */
.se-auth .glassy-btn1,
.se-auth .glassy-btn2,
.se-auth .elementor-button.glassy-btn1,
.se-auth .elementor-button.glassy-btn2 {
	color: #111827 !important;
}

/* Make login CTA look like a standard glassy button (padding/centering) */
.se-auth .se-login .elementor-button.glassy-btn1,
.se-auth .se-login .elementor-button.glassy-btn2 {
	padding: 14px 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* OTP resend button should not look like a link */
.se-auth .se-otp-resend {
	text-decoration: none !important;
}

/* OTP inputs */
.se-otp {
	display: flex;
	gap: 14px;
	justify-content: center;
	margin: 22px 0 10px;
}
.se-otp input {
	width: 86px;
	height: 90px;
	text-align: center;
	font-size: 32px;
	border-radius: var(--se-lg-btn-radius, 10px);
	outline: none;
}
.se-auth__card [data-section="otp"] .se-field__label {
	text-align: center;
}

.se-otp-resend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
	padding: 12px 14px;
	font-size: 13px;
	text-decoration: none;
	color: var(--e-global-color-text, #111827);
}

/* Fallback: if glassy styles aren't present, still make glassy buttons look right on login */
.se-auth .glassy-btn1,
.se-auth .glassy-btn2 {
	background: var(--se-lg-btn-bg, rgba(255, 255, 255, 0.35));
	background-color: var(--se-lg-btn-bg, rgba(255, 255, 255, 0.35));
	background-image: none;
	backdrop-filter: blur(var(--se-lg-btn-blur, 24px)) saturate(120%);
	-webkit-backdrop-filter: blur(var(--se-lg-btn-blur, 24px)) saturate(120%);
	border: 1px solid var(--se-lg-btn-border, rgba(255, 255, 255, 0.35));
	border-radius: var(--se-lg-btn-radius, 10px);
	box-shadow: var(--se-lg-btn-shadow, 0 2px 8px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.03));
	transition: all 0.2s ease;
}
.se-auth .glassy-btn1:hover,
.se-auth .glassy-btn2:hover {
	background: var(--se-lg-btn-bg-hover, rgba(255, 255, 255, 0.50));
	background-color: var(--se-lg-btn-bg-hover, rgba(255, 255, 255, 0.50));
	box-shadow: var(--se-lg-btn-shadow-hover, 0 4px 12px rgba(0, 0, 0, 0.07), 0 12px 32px rgba(0, 0, 0, 0.05));
	transform: translateY(-1px);
}

/* Helpers */
.se-hidden { display: none !important; }

/* Success overlay */
.se-blur {
	filter: blur(2px);
	opacity: .25;
	transition: filter .25s ease, opacity .25s ease;
}
.se-success {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 20;
}
.se-success__icon {
	width: 96px;
	height: 96px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--se-success-color);
	animation: se-bounce .28s ease-out;
}
.se-success__icon span {
	width: 54px;
	height: 32px;
	border-left: 6px solid currentColor;
	border-bottom: 6px solid currentColor;
	transform: rotate(-45deg);
	opacity: 0;
	animation: se-draw .22s .04s ease-out forwards;
}

@keyframes se-bounce {
	0% { transform: scale(.6); opacity: 0; }
	70% { transform: scale(1.05); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}
@keyframes se-draw {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Small screens */
@media (max-width: 480px) {
	.se-auth__card {
		padding: 20px 14px 22px;
		border-radius: 24px;
	}
	.se-auth__card[data-view="reset-email"],
	.se-auth__card[data-view="otp"],
	.se-auth__card[data-view="newpass"] {
		padding-top: 4.4em;
	}
	.se-auth__card:not([data-view="reset-email"]):not([data-view="otp"]):not([data-view="newpass"]) {
		--se-auth-header-h: 40px;
		padding-top: calc(var(--se-auth-header-h) + 32px);
	}
	.se-auth__top-title {
		top: 10px;
		right: 10px;
		font-size: 15px;
		max-width: calc(100% - 160px);
	}
	.se-auth__card .se-back {
		top: 10px;
		left: 10px;
		height: 40px;
		min-width: 40px;
	}
	.se-otp input {
		width: min(70px, calc((100% - 30px) / 4));
		height: 74px;
		font-size: 28px;
	}

	.se-row {
		gap: 8px;
		margin-bottom: 18px;
	}
}

/*
Elementor breakpoint alignment (from Elementor Site Settings → Layout → Breakpoints)

- Mobile (vertical): 767px
- Mobile (horizontal): 880px
- Tablet Portrait: 1024px
- Laptop: 1280px
- Widescreen: 1535px

The login UI uses absolutely-positioned top buttons; on smaller viewports we must preserve
top padding and collapse button labels to prevent overlap.
*/

@media (max-width: 880px) {
	.se-auth__card {
		padding-left: 18px;
		padding-right: 18px;
	}

	.se-auth__card .se-back__label {
		display: inline-block;
	}

	.se-auth__logo {
		margin: 0 0 12px;
	}
	.se-auth__logo img {
		width: min(220px, 70vw);
	}
}

@media (max-width: 767px) {
	.se-auth__card {
		padding-left: 14px;
		padding-right: 14px;
	}

	.se-row {
		gap: 8px;
	}

	.se-input {
		padding: 14px 16px;
	}
}
