:root {
	--account-auth-surface: #ffffff;
	--account-auth-surface-soft: #f7fafc;
	--account-auth-border: rgba(15, 23, 42, 0.1);
	--account-auth-text: #122237;
	--account-auth-muted: #617588;
	--account-auth-success: #15803d;
	--account-auth-danger: #dc2626;
	--account-auth-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.account-auth-page {
	min-height: calc(100vh - 120px);
}

.account-auth-section {
	padding: 36px 0 68px;
}

.account-auth-register-shell {
	max-width: 760px;
	margin: 0 auto;
}

.account-auth-register-card,
.account-auth-otp-panel {
	background: var(--account-auth-surface);
	border: 1px solid var(--account-auth-border);
	border-radius: 28px;
	box-shadow: var(--account-auth-shadow);
}

.account-auth-register-card {
	padding: 30px;
}

.account-auth-register-card__head,
.account-auth-otp-panel__head {
	display: grid;
	gap: 8px;
	margin-bottom: 20px;
}

.account-auth-register-card__eyebrow {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--account-auth-muted);
}

.account-auth-register-card h1,
.account-auth-otp-panel h3 {
	margin: 0;
	color: var(--account-auth-text);
}

.account-auth-register-card h1 {
	font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.account-auth-register-card p,
.account-auth-otp-panel p,
.account-auth-feedback,
.account-auth-field label,
.account-auth-inline-link {
	color: var(--account-auth-muted);
	line-height: 1.8;
}

.account-auth-register-form,
.account-auth-register-card__actions {
	display: grid;
	gap: 16px;
}

.account-auth-grid,
.account-auth-phone-stack {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.account-auth-grid > *,
.account-auth-phone-stack > * {
	min-width: 0;
}

.account-auth-phone-stack {
	align-items: end;
}

.account-auth-register-phone > .account-auth-phone-stack:not(.account-auth-phone-stack--code),
.account-auth-otp-panel > .account-auth-phone-stack:not(.account-auth-phone-stack--code) {
	grid-template-columns: 1fr;
}

.account-auth-phone-stack--code {
	grid-template-columns: minmax(0, 1fr) auto;
}

.account-auth-field {
	display: grid;
	gap: 8px;
}

.account-auth-field label {
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--account-auth-text);
}

.account-auth-register-card .account-auth-field input,
.account-auth-otp-panel .account-auth-field input,
.account-auth-account-page .woocommerce-form-login .input-text,
.account-auth-account-page .woocommerce form .input-text,
.account-auth-account-page .woocommerce form input[type='text'],
.account-auth-account-page .woocommerce form input[type='password'],
.account-auth-account-page .woocommerce form input[type='email'] {
	min-height: 56px;
	border-radius: 16px;
	border: 1px solid rgba(18, 34, 55, 0.16) !important;
	background: var(--account-auth-surface) !important;
	color: var(--account-auth-text);
	padding: 0 16px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
	-webkit-appearance: none;
	appearance: none;
}

.account-auth-register-card .account-auth-field input::placeholder,
.account-auth-otp-panel .account-auth-field input::placeholder,
.account-auth-account-page .woocommerce-form-login .input-text::placeholder,
.account-auth-account-page .woocommerce form .input-text::placeholder {
	color: #7c8fa2;
	font-size: 0.88rem;
	opacity: 1;
}

input[data-account-auth-otp]::placeholder {
	text-align: right;
	direction: rtl;
	font-size: 0.84rem;
}

.account-auth-register-card .account-auth-field input:focus,
.account-auth-otp-panel .account-auth-field input:focus,
.account-auth-account-page .woocommerce-form-login .input-text:focus,
.account-auth-account-page .woocommerce form .input-text:focus,
.account-auth-account-page .woocommerce form input[type='text']:focus,
.account-auth-account-page .woocommerce form input[type='password']:focus,
.account-auth-account-page .woocommerce form input[type='email']:focus {
	outline: none;
	border-color: rgba(13, 174, 188, 0.38) !important;
	box-shadow: 0 0 0 4px rgba(13, 174, 188, 0.08), 0 10px 24px rgba(15, 23, 42, 0.05) !important;
}

.account-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.account-auth-button:hover {
	transform: translateY(-1px);
}

.account-auth-button:disabled,
.account-auth-button[disabled] {
	opacity: 0.58;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.account-auth-button--primary,
.account-auth-button--secondary {
	background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
	color: #fff;
	box-shadow: 0 18px 34px rgba(13, 174, 188, 0.24);
}

.account-auth-button--ghost {
	background: rgba(15, 23, 42, 0.04);
	border-color: rgba(15, 23, 42, 0.08);
	color: var(--account-auth-text);
}

.account-auth-button--full {
	width: 100%;
}

.account-auth-feedback {
	margin: 0;
	font-size: 0.95rem;
}

.account-auth-feedback.is-success {
	color: var(--account-auth-success);
	font-weight: 700;
}

.account-auth-feedback.is-error {
	color: var(--account-auth-danger);
	font-weight: 700;
}

.account-auth-notices .woocommerce-error,
.account-auth-notices .woocommerce-message,
.account-auth-notices .woocommerce-info {
	margin: 0 0 18px;
	border-radius: 16px;
}

.account-auth-register-card__footer {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--account-auth-muted);
}

.account-auth-register-card__footer a,
.account-auth-inline-link a {
	color: var(--bs-primary);
	font-weight: 800;
	text-decoration: none;
}

.account-auth-inline-link {
	margin: 12px 0 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
}

.account-auth-otp-panel {
	margin-top: 24px;
	padding: 24px;
}

.account-auth-register-phone,
[data-account-auth-login-block] {
	display: grid;
	gap: 14px;
}

[data-account-auth-login-block] .account-auth-otp-panel__head {
	margin-bottom: 0;
}

.account-auth-phone-stack + .account-auth-phone-stack,
.account-auth-phone-stack + .account-auth-feedback {
	margin-top: 2px;
}

.account-auth-account-page .woocommerce {
	max-width: 620px;
	margin: 0 auto;
}

.account-auth-account-page .woocommerce-form-login {
	background: var(--account-auth-surface);
	border: 1px solid var(--account-auth-border);
	border-radius: 28px;
	box-shadow: var(--account-auth-shadow);
	padding: 28px;
	display: grid;
	gap: 16px;
}

.account-auth-account-page .woocommerce-form-login > p {
	margin-bottom: 16px;
}

.account-auth-account-page .woocommerce-form-login h2,
.account-auth-account-page .woocommerce h2 {
	color: var(--account-auth-text);
}

.account-auth-account-page .woocommerce .form-row {
	margin: 0;
}

.account-auth-account-page .woocommerce .form-row label {
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--account-auth-text);
	margin-bottom: 8px;
}

.account-auth-account-page .woocommerce .required {
	color: var(--account-auth-danger);
}

.account-auth-account-page .woocommerce form .password-input {
	display: block;
	width: 100%;
}

.account-auth-account-page .woocommerce form .password-input input.input-text {
	padding-inline-end: 44px;
}

.account-auth-account-page .woocommerce .button,
.account-auth-account-page .woocommerce-form-login__submit {
	border-radius: 16px;
}

.account-auth-account-page .woocommerce-form-login__submit {
	background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
	border: 0;
	color: #fff;
	min-height: 52px;
	padding-inline: 22px;
}

.account-auth-account-page .woocommerce-LostPassword {
	margin-bottom: 0;
}

.account-auth-account-page .woocommerce form .show-password-input,
.account-auth-account-page .woocommerce-page form .show-password-input {
	top: 50%;
	transform: translateY(-50%);
}

.account-auth-field--phone .iti {
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
	direction: ltr;
	--iti-path-flags-1x: url("/wp-content/themes/avinex/assets/vendor/img/flags.webp");
	--iti-path-flags-2x: url("/wp-content/themes/avinex/assets/vendor/img/flags@2x.webp");
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.account-auth-field--phone .iti input {
	width: 100% !important;
	flex: 1 1 auto;
	min-width: 0 !important;
	max-width: 100%;
	box-sizing: border-box;
}

.account-auth-field--phone .iti__country-container {
	position: relative;
	right: auto;
	left: auto;
	top: auto;
	bottom: auto;
	transform: none;
	padding: 0;
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	max-width: 100%;
	z-index: 3;
}

.account-auth-field--phone .iti__selected-country {
	height: 56px;
	min-width: 118px;
	border: 1px solid rgba(18, 34, 55, 0.16);
	border-radius: 16px;
	background: var(--account-auth-surface);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	direction: ltr;
	position: relative;
	z-index: 4;
}

.account-auth-field--phone .iti__selected-country-primary {
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.account-auth-field--phone .iti__selected-dial-code {
	font-weight: 700;
	color: var(--account-auth-text);
	padding-inline-start: 8px;
	border-inline-start: 1px solid rgba(15, 23, 42, 0.1);
}

.account-auth-field--phone .iti__flag {
	box-shadow: 0 0 0 1px rgba(18, 34, 55, 0.14);
	border-radius: 999px;
}

.account-auth-field--phone .iti__arrow {
	margin-right: 0;
	margin-left: 0;
}

.account-auth-field--phone .iti input.iti__tel-input {
	padding-right: 16px !important;
	padding-left: 16px !important;
	direction: ltr;
	text-align: left;
	letter-spacing: 0.01em;
	position: relative;
	z-index: 1;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	body.avinex-theme.account-auth-route .account-auth-section {
		padding-top: 132px;
	}

	body.avinex-theme.account-auth-route .main-header,
	body.avinex-theme.account-auth-account-page .main-header {
		position: absolute;
		top: 0;
		background: transparent !important;
		box-shadow: none;
	}

	body.avinex-theme.account-auth-route.admin-bar .main-header,
	body.avinex-theme.account-auth-account-page.admin-bar .main-header {
		top: 32px;
	}

	body.avinex-theme.account-auth-route .above-header,
	body.avinex-theme.account-auth-account-page .above-header {
		background: transparent !important;
		border-bottom: none;
	}

	body.avinex-theme.account-auth-route .is-sticky-menu,
	body.avinex-theme.account-auth-account-page .is-sticky-menu {
		background: transparent !important;
		box-shadow: none;
	}

	body.avinex-theme.account-auth-route .menu-area {
		background: transparent;
		box-shadow: none;
	}

	body.avinex-theme.account-auth-route .menu-area:before {
		background: rgba(18, 34, 55, 0.74);
	}

	body.avinex-theme.account-auth-route .menu-area:after {
		background: rgba(18, 34, 55, 0.74);
		border-color: rgba(255, 255, 255, 0.14);
	}

	body.avinex-theme.account-auth-route .main-navbar .main-menu > li.menu-item > a,
	body.avinex-theme.account-auth-route .main-navbar .main-menu > li.dropdown > a:before,
	body.avinex-theme.account-auth-route .site-title,
	body.avinex-theme.account-auth-route .site-description {
		color: var(--bs-white) !important;
	}
}

.account-auth-field--phone .iti--show-flags + input,
.account-auth-field--phone .iti__tel-input {
	direction: ltr;
}

.account-auth-field--phone .iti__dropdown-content {
	text-align: right;
}

.account-auth-field--phone .iti__search-input {
	font-family: inherit;
}

.account-auth-field--phone .iti__country {
	direction: rtl;
}

.account-auth-field--phone .iti__country-name,
.account-auth-field--phone .iti__dial-code {
	font-family: inherit;
}

.account-auth-field--phone .iti__dropdown-content {
	min-width: 280px;
}

.account-auth-register-phone > .account-auth-phone-stack:not(.account-auth-phone-stack--code) .account-auth-button,
.account-auth-otp-panel > .account-auth-phone-stack:not(.account-auth-phone-stack--code) .account-auth-button {
	width: 100%;
}

.account-auth-register-phone.is-verified .account-auth-feedback {
	color: var(--account-auth-success);
	font-weight: 700;
}

@media (max-width: 991px) {
	.account-auth-section {
		padding: 28px 0 54px;
	}

	.account-auth-register-card,
	.account-auth-otp-panel,
	.account-auth-account-page .woocommerce-form-login {
		padding: 22px;
		border-radius: 22px;
	}

	.account-auth-grid,
	.account-auth-phone-stack,
	.account-auth-phone-stack--code {
		grid-template-columns: 1fr;
	}

	.account-auth-button,
	.account-auth-account-page .woocommerce-form-login__submit {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.account-auth-register-card h1 {
		font-size: 1.62rem;
	}

	.account-auth-field--phone .iti input.iti__tel-input {
		padding-right: 16px !important;
	}

	.account-auth-field--phone .iti__selected-country {
		min-width: 104px;
		padding: 0 12px;
	}
}
