/*
 * TETA Accounts: sign-in popup, register page, navbar button.
 *
 * The theme and the Elementor kit style every button, input, label and
 * heading globally (that is what made headings near-white on the checkout), so
 * the important properties below use !important on purpose.
 */

:root {
	--teta-navy: #252966;
	--teta-navy-dark: #1a1d4d;
	--teta-ink: #0f172a;
	--teta-muted: #475569;
	--teta-line: #e2e8f0;
	--teta-field: #7c8798;
	--teta-err: #b91c1c;
	--teta-focus: #2563eb;
}

/* ---------- Navbar button ---------- */

.teta-navbtn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 47px;
	padding: 0 28px !important;
	margin: 0 !important;
	background: transparent !important;
	color: var(--teta-navy) !important;
	border: 1px solid var(--teta-navy) !important;
	border-radius: 5px !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 1px !important;
	line-height: 1 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
	white-space: nowrap;
}

.teta-navbtn:hover,
.teta-navbtn:focus-visible,
.teta-navbtn[aria-expanded="true"] {
	background: var(--teta-navy) !important;
	color: #fff !important;
}

.teta-navbtn:focus-visible {
	outline: 3px solid var(--teta-focus);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.teta-navbtn {
		height: 44px;
		padding: 0 18px !important;
	}
}

/* Very small phones (320px): keep logo, button and menu icon on one row. */
@media (max-width: 359px) {
	.teta-navbtn {
		padding: 0 12px !important;
		letter-spacing: .5px !important;
	}
}

/* ---------- Account menu (signed in) ---------- */

.teta-acct {
	position: relative;
	display: inline-block;
}

.teta-acct__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 99998;
	min-width: 210px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--teta-line);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}

.teta-acct__menu[hidden] {
	display: none !important;
}

.teta-acct__hi {
	margin: 0 !important;
	padding: 8px 12px 10px !important;
	font-size: 13px !important;
	color: var(--teta-muted) !important;
	border-bottom: 1px solid var(--teta-line);
	margin-bottom: 6px !important;
}

.teta-acct__menu a {
	display: block;
	padding: 11px 12px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--teta-ink) !important;
	text-decoration: none !important;
}

.teta-acct__menu a:hover,
.teta-acct__menu a:focus-visible {
	background: #f1f5f9;
}

/* ---------- Shared components ---------- */

:is(.teta-auth, .teta-reg) {
	font-family: inherit;
	color: var(--teta-ink);
	-webkit-font-smoothing: antialiased;
}

:is(.teta-auth, .teta-reg) *,
:is(.teta-auth, .teta-reg) *::before,
:is(.teta-auth, .teta-reg) *::after {
	box-sizing: border-box;
}

:is(.teta-auth, .teta-reg) [hidden] {
	display: none !important;
}

:is(.teta-auth, .teta-reg) .teta-auth__logo {
	text-align: center;
	margin: 0 0 20px;
}

:is(.teta-auth, .teta-reg) .teta-logo img {
	display: inline-block;
	width: auto;
	height: 52px;
	max-width: 100%;
}

:is(.teta-auth, .teta-reg) .teta-logo__text {
	font-size: 20px;
	font-weight: 700;
	color: var(--teta-navy);
}

:is(.teta-auth, .teta-reg) .teta-title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	text-align: center;
	font-size: 28px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	color: var(--teta-ink) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

:is(.teta-auth, .teta-reg) .teta-sub {
	margin: 0 0 22px !important;
	text-align: center;
	font-size: 16px !important;
	line-height: 1.55 !important;
	color: var(--teta-muted) !important;
}

:is(.teta-auth, .teta-reg) .teta-sub a {
	font-weight: 600;
}

:is(.teta-auth, .teta-reg) .teta-hint {
	margin: 6px 0 0 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: var(--teta-muted) !important;
}

:is(.teta-auth, .teta-reg) .teta-hint--center {
	text-align: center;
	margin: 0 0 18px !important;
}

/* Fields */

:is(.teta-auth, .teta-reg) .teta-field {
	margin: 0 0 18px;
}

:is(.teta-auth, .teta-reg) .teta-field label:not(.teta-check) {
	display: block !important;
	margin: 0 0 6px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: var(--teta-ink) !important;
}

:is(.teta-auth, .teta-reg) .teta-field input[type="text"],
:is(.teta-auth, .teta-reg) .teta-field input[type="email"],
:is(.teta-auth, .teta-reg) .teta-field input[type="password"] {
	display: block;
	width: 100% !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	background: #fff !important;
	color: var(--teta-ink) !important;
	border: 1px solid var(--teta-field) !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 17px !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}

:is(.teta-auth, .teta-reg) .teta-field input:focus {
	outline: none !important;
	border-color: var(--teta-navy) !important;
	box-shadow: 0 0 0 3px rgba(37, 41, 102, .25) !important;
}

:is(.teta-auth, .teta-reg) .teta-field.has-error input[type="text"],
:is(.teta-auth, .teta-reg) .teta-field.has-error input[type="email"],
:is(.teta-auth, .teta-reg) .teta-field.has-error input[type="password"] {
	border-color: var(--teta-err) !important;
	box-shadow: 0 0 0 1px var(--teta-err) !important;
}

:is(.teta-auth, .teta-reg) .teta-err {
	margin: 6px 0 0 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	font-weight: 500 !important;
	color: var(--teta-err) !important;
}

/* Password with Show/Hide */

:is(.teta-auth, .teta-reg) .teta-pw {
	position: relative;
	display: block;
}

:is(.teta-auth, .teta-reg) .teta-pw input {
	padding-right: 84px !important;
}

:is(.teta-auth, .teta-reg) .teta-pw__toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	height: 38px;
	min-width: 64px;
	padding: 0 12px !important;
	background: transparent !important;
	color: var(--teta-navy) !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

:is(.teta-auth, .teta-reg) .teta-pw__toggle:hover {
	background: #eef0fb !important;
}

/* Checkboxes */

:is(.teta-auth, .teta-reg) .teta-check {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	font-weight: 400 !important;
	color: var(--teta-ink) !important;
	cursor: pointer;
}

:is(.teta-auth, .teta-reg) .teta-check input[type="checkbox"] {
	flex: none;
	width: 22px !important;
	height: 22px !important;
	margin: 1px 0 0 !important;
	accent-color: var(--teta-navy);
	cursor: pointer;
}

:is(.teta-auth, .teta-reg) .teta-field--check {
	margin-bottom: 12px;
}

:is(.teta-auth, .teta-reg) .teta-field--check + .teta-field--check {
	margin-bottom: 22px;
}

:is(.teta-auth, .teta-reg) .teta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 2px 0 22px;
}

/* Links and buttons */

:is(.teta-auth, .teta-reg) .teta-link {
	color: var(--teta-navy) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

:is(.teta-auth, .teta-reg) .teta-link:hover {
	color: var(--teta-navy-dark) !important;
}

:is(.teta-auth, .teta-reg) .teta-btn {
	display: block;
	width: 100% !important;
	height: 54px !important;
	margin: 0 !important;
	padding: 0 20px !important;
	background: var(--teta-navy) !important;
	color: #fff !important;
	border: 2px solid var(--teta-navy) !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-align: center;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

:is(.teta-auth, .teta-reg) .teta-btn:hover,
:is(.teta-auth, .teta-reg) .teta-btn:focus-visible {
	background: var(--teta-navy-dark) !important;
	border-color: var(--teta-navy-dark) !important;
	color: #fff !important;
}

:is(.teta-auth, .teta-reg) .teta-btn:disabled {
	opacity: .65;
	cursor: default;
}

:is(.teta-auth, .teta-reg) .teta-btn--ghost {
	background: #fff !important;
	color: var(--teta-navy) !important;
}

:is(.teta-auth, .teta-reg) .teta-btn--ghost:hover,
:is(.teta-auth, .teta-reg) .teta-btn--ghost:focus-visible {
	background: #eef0fb !important;
	color: var(--teta-navy) !important;
	border-color: var(--teta-navy) !important;
}

:is(.teta-auth, .teta-reg) :is(a, button):focus-visible {
	outline: 3px solid var(--teta-focus);
	outline-offset: 2px;
}

:is(.teta-auth, .teta-reg) .teta-alt {
	margin: 22px 0 0 !important;
	text-align: center;
	font-size: 15px !important;
	line-height: 1.5 !important;
	color: var(--teta-muted) !important;
}

/* Notices */

:is(.teta-auth, .teta-reg) .teta-notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid #93c5fd;
	border-radius: 10px;
	background: #eff6ff;
	color: #1e3a8a;
	font-size: 15px;
	line-height: 1.5;
}

:is(.teta-auth, .teta-reg) .teta-notice--success {
	background: #ecfdf5;
	border-color: #86efac;
	color: #14532d;
}

:is(.teta-auth, .teta-reg) .teta-notice--error {
	background: #fef2f2;
	border-color: #fca5a5;
	color: #7f1d1d;
}

:is(.teta-auth, .teta-reg) .teta-resend {
	margin: -4px 0 6px;
	padding: 14px;
	background: #f8fafc;
	border: 1px solid var(--teta-line);
	border-radius: 10px;
}

:is(.teta-auth, .teta-reg) .teta-resend p {
	margin: 0 0 10px !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: var(--teta-muted) !important;
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it */

:is(.teta-auth, .teta-reg) .teta-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ---------- Popup ---------- */

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

.teta-auth {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.teta-auth__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .6);
	opacity: 0;
	transition: opacity .18s ease;
}

.teta-auth.is-open .teta-auth__backdrop {
	opacity: 1;
}

.teta-auth__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 36px 32px 28px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .45);
	opacity: 0;
	transform: translateY(10px) scale(.98);
	transition: opacity .18s ease, transform .18s ease;
}

.teta-auth.is-open .teta-auth__dialog {
	opacity: 1;
	transform: none;
}

.teta-auth__dialog:focus {
	outline: none;
}

.teta-auth__x {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	background: transparent !important;
	color: var(--teta-muted) !important;
	border: 0 !important;
	border-radius: 50% !important;
	cursor: pointer;
}

.teta-auth__x:hover {
	background: #f1f5f9 !important;
	color: var(--teta-ink) !important;
}

html.teta-lock {
	overflow: hidden;
}

/* ---------- Register page ---------- */

body.teta-register-page {
	background: #f5f9fa;
}

body.teta-register-page .page-header {
	display: none !important;
}

.teta-reg {
	padding: 40px 16px 72px;
}

.teta-card {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 40px 34px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.teta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.teta-sent__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #eef0fb;
	color: var(--teta-navy);
}

.teta-sent__icon + .teta-title:focus {
	outline: none;
}

@media (max-width: 600px) {
	.teta-card {
		padding: 28px 20px 26px;
	}

	.teta-grid {
		grid-template-columns: 1fr;
	}

	.teta-auth__dialog {
		padding: 32px 20px 24px;
	}

	:is(.teta-auth, .teta-reg) .teta-title {
		font-size: 24px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.teta-auth__backdrop,
	.teta-auth__dialog,
	.teta-navbtn {
		transition: none !important;
	}
}
