.custom-auth-tabs-container {
	max-width: 500px;
	border-radius: 12px;
	box-shadow: 0 0 15px rgba(0,0,0,0.1);
	font-family: inherit;
}

.tabs-header {
	display: flex;
	margin-bottom: 20px;
	gap: 16px;
}

.form-group input {
	font-family: inherit;
	border: 1px solid #C0CED7 !important;
	border-radius: 16px !important;
	background: #faebd700;
}

.tab-btn {
	font-family: inherit;
	border-radius: 8px;
	flex: 1;
	padding: 12px;
	background: white !important;
	border: none;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	color: #4140FF !important;
	transition: 0.3s;
}

.tab-btn.active {
	color: white !important;
	background: #4140FF !important;
}

.custom-auth-tabs-container .tab-btn {
	background: var(--color-brand, #4140ff) !important;
	color: white !important;
	border: 1px solid transparent !important;
}

.custom-auth-tabs-container .tab-btn.active {
	background: white !important;
	color: var(--color-brand, #4140ff) !important;
	border-color: var(--color-brand, #4140ff) !important;
}

body.light-mode .custom-auth-tabs-container .tab-btn.active {
	background: #fff !important;
}

.profile-sidebar .tab-btn {
	color: #4140FF !important;
}

.profile-sidebar .active {
	color: white !important;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.auth-turnstile-shared {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 12px 0 12px;
	min-height: 65px;
	width: 100%;
}

.auth-captcha-anchor {
	width: 100%;
}

.auth-turnstile-shared .js-turnstile-host,
.turnstile-wrap .js-turnstile-host {
	min-height: 65px;
	width: 100%;
	display: flex;
	justify-content: center;
}

.turnstile-status {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #b42318;
	text-align: center;
	cursor: pointer;
	text-decoration: underline;
}

.auth-turnstile-shared.is-error .turnstile-status,
.turnstile-wrap.is-error .turnstile-status {
	text-decoration: none;
	cursor: default;
	color: #9a6700;
}

.auth-turnstile-shared.is-fallback {
	min-height: 0;
}

.auth-turnstile-shared.is-fallback .js-turnstile-host,
.turnstile-wrap.is-fallback .js-turnstile-host {
	display: none !important;
	min-height: 0;
}

.auth-turnstile-shared .js-altcha-host,
.turnstile-wrap .js-altcha-host {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-top: 4px;
	min-height: 48px;
}

.auth-turnstile-shared .js-altcha-host[hidden],
.turnstile-wrap .js-altcha-host[hidden] {
	display: none !important;
	min-height: 0;
}

altcha-widget {
	display: block;
	width: 100%;
	max-width: 360px;
}

.altcha-fallback {
	width: 100%;
	max-width: 360px;
}

.altcha-fallback__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	text-align: right;
}

.altcha-fallback__btn:disabled {
	cursor: default;
	opacity: 0.9;
}

.altcha-fallback__btn.is-verified {
	border-color: #3dd68c;
}

.altcha-fallback__check {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 4px;
	flex: 0 0 auto;
}

.altcha-fallback__btn.is-busy .altcha-fallback__check {
	border-color: transparent;
	border-top-color: #5b9dff;
	border-radius: 50%;
	animation: altcha-spin 0.8s linear infinite;
}

.altcha-fallback__btn.is-verified .altcha-fallback__check {
	border-color: #3dd68c;
	background: #3dd68c;
	position: relative;
}

.altcha-fallback__btn.is-verified .altcha-fallback__check::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 9px;
	border: solid #0b1b12;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.altcha-fallback__progress {
	margin-top: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

@keyframes altcha-spin {
	to {
		transform: rotate(360deg);
	}
}

.tab-content--sms-locked {
	position: relative;
	min-height: 220px;
}

.tab-content--sms-locked .auth-form {
	pointer-events: none;
	user-select: none;
}

.auth-sms-unavailable {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-radius: 12px;
}

.auth-sms-unavailable__glass {
	width: 100%;
	max-width: 360px;
	padding: 28px 24px;
	text-align: center;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(20, 22, 28, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.auth-sms-unavailable__glass p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
}

body.light-mode .auth-sms-unavailable__glass {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.62);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

body.light-mode .auth-sms-unavailable__glass p {
	color: #1a1d24;
}

.form-group {
	margin-bottom: 15px;
}

.auth-form-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 15px;
}

.auth-form-name-row .form-group {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.auth-form-name-row {
		grid-template-columns: 1fr;
	}
}

.form-group label {
	font-family: inherit;
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.form-group input {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.form-group input::placeholder {
	font-family: inherit;
	opacity: 0.65;
}

body.auth-theme-page .auth-form input.auth-field-ltr,
.auth-form input.auth-field-ltr {
	direction: rtl;
	text-align: right;
}

body.auth-theme-page .auth-form input.auth-field-ltr:not(:placeholder-shown),
.auth-form input.auth-field-ltr:not(:placeholder-shown) {
	direction: ltr;
	text-align: left;
}

body.auth-theme-page #register-mobile-form input[name="mobile"].auth-field-ltr,
#register-mobile-form input[name="mobile"].auth-field-ltr {
	direction: ltr;
	text-align: left;
}

.password-field__control {
	position: relative;
	direction: ltr;
}

body.auth-theme-page .auth-form .password-field__control input[type="password"],
body.auth-theme-page .auth-form .password-field__control input[type="text"],
.password-field__control input[type="password"],
.password-field__control input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	padding-left: 48px !important;
	padding-right: 14px !important;
}

body.auth-theme-page .auth-form .password-field--with-status .password-field__control input[type="password"],
body.auth-theme-page .auth-form .password-field--with-status .password-field__control input[type="text"],
.password-field--with-status .password-field__control input[type="password"],
.password-field--with-status .password-field__control input[type="text"] {
	padding-right: 44px !important;
}

body.auth-theme-page .auth-form .password-field__control input[type="password"]:not(:placeholder-shown),
body.auth-theme-page .auth-form .password-field__control input[type="text"]:not(:placeholder-shown),
.password-field__control input[type="password"]:not(:placeholder-shown),
.password-field__control input[type="text"]:not(:placeholder-shown) {
	direction: ltr;
	text-align: left;
}

.password-field__toggle {
	position: absolute;
	top: 50%;
	left: 8px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: inherit;
	opacity: 0.55;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.password-field__toggle:hover,
.password-field__toggle:focus-visible {
	opacity: 0.95;
	background: rgba(65, 64, 255, 0.08) !important;
	outline: none;
}

.password-field__toggle-icon {
	display: inline-flex;
	line-height: 0;
}

.password-field__toggle-icon[hidden] {
	display: none !important;
}

.password-field__status {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%) scale(0.85);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, visibility 0.2s ease;
}

.password-field--valid .password-field__status,
.password-field--invalid .password-field__status {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) scale(1);
}

.password-field--valid .password-field__status {
	background: #16a34a;
}

.password-field--invalid .password-field__status {
	background: #dc2626;
}

.security-code-box {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.security-code {
	font-size: 24px;
	font-weight: bold;
	padding: 5px 15px;
	border-radius: 6px;
	letter-spacing: 3px;
}

.refresh-code {
	cursor: pointer;
	background: #0073aa !important;
	color: white !important;
	border: none !important;
	padding: 5px 12px;
	border-radius: 4px;
}

.send-otp-btn,
.login-password-btn,
.login-password-reset-email-btn,
.login-reset-submit-btn,
.auth-form button[type="submit"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	background: var(--color-brand, #4140ff) !important;
	color: white !important;
	border: 0 !important;
	padding: 12px;
	border-radius: 8px !important;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	transition: opacity 0.2s ease;
}

.send-otp-btn {
	margin-top: 8px;
	margin-bottom: 15px;
}

.login-mobile-mode--reset .login-reset-otp-btn {
	margin-bottom: 8px;
}

.login-password-btn,
.login-password-reset-email-btn,
.login-reset-submit-btn {
	margin-top: 8px;
	margin-bottom: 0;
}

.login-mode-switch {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 0;
	background: none !important;
	border: 0;
	color: var(--color-brand, #4140ff) !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	font-family: inherit;
}

.login-mode-switch:hover {
	opacity: 0.85;
}

.login-mode-switch--alt {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin-top: 10px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 8px;
	background: transparent !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.login-mode-switch--alt:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.08) !important;
}

body.light-mode .login-mode-switch--alt {
	border-color: #0f0f21 !important;
	color: #0f0f21 !important;
}

body.light-mode .login-mode-switch--alt:hover {
	background: rgba(15, 15, 33, 0.06) !important;
}

.auth-switch-prompt {
	max-width: 500px;
	margin: 16px auto 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.6;
}

.auth-switch-prompt__link {
	color: var(--color-brand, #4140ff);
	font-weight: 600;
	text-decoration: none;
}

.auth-switch-prompt__link:hover {
	opacity: 0.85;
}

.auth-reset-intro {
	margin: 0 0 16px;
	text-align: center;
	font-size: 14px;
	color: inherit;
}

.password-reset-container {
	width: 100%;
	max-width: 500px;
	box-shadow: none;
	border-radius: 0;
	margin-inline: auto;
}

.password-reset-container .login-mode-switch {
	display: block;
	width: 100%;
	margin-top: 12px;
	text-align: center;
	text-decoration: none;
}

.login-mobile-mode--otp[hidden],
.login-mobile-mode--password[hidden],
.login-mobile-mode--reset[hidden],
.login-email-mode[hidden] {
	display: none !important;
}

.login-mobile-mode--otp .otp-field-wrapper[hidden],
.login-mobile-mode--reset .otp-field-wrapper[hidden] {
	display: none !important;
}

.send-otp-btn:hover:not(:disabled),
.login-password-btn:hover:not(:disabled),
.login-password-reset-email-btn:hover:not(:disabled),
.login-reset-submit-btn:hover:not(:disabled),
.auth-form button[type="submit"]:hover:not(:disabled) {
	opacity: 0.9;
}

.send-otp-btn:disabled,
.login-password-btn:disabled,
.login-password-reset-email-btn:disabled,
.login-reset-submit-btn:disabled,
.auth-form button[type="submit"]:disabled {
	background: #a1acb2 !important;
	cursor: not-allowed;
	opacity: 1;
}

.register-submit-btn,
.login-submit-btn,
.login-reset-submit-btn {
	width: 100%;
}

.otp-field-wrapper {
	margin-bottom: 15px;
}

.otp-digits {
	display: flex;
	gap: clamp(6px, 2vw, 12px);
	justify-content: center;
	direction: ltr;
	width: 100%;
}

.otp-digit {
	flex: 0 1 auto;
	width: clamp(40px, 12vw, 52px);
	height: clamp(44px, 12vw, 56px);
	min-width: 0;
	box-sizing: border-box;
	padding: 0;
	text-align: center;
	font-size: clamp(18px, 5vw, 22px);
	font-weight: 700;
	font-family: inherit;
	line-height: 1;
	border-radius: 10px !important;
	border: 1px solid #C0CED7 !important;
	background: transparent;
	color: inherit;
	caret-color: var(--color-brand, #4140ff);
}

.otp-digit:focus {
	outline: none;
	border-color: var(--color-brand, #4140ff) !important;
	box-shadow: 0 0 0 2px rgba(65, 64, 255, 0.2);
}

body.light-mode .otp-digit {
	background: #fff;
}

@media (max-width: 360px) {
	.otp-digits {
		gap: 4px;
	}

	.otp-digit {
		width: clamp(36px, 11vw, 44px);
		height: clamp(40px, 11vw, 48px);
		font-size: 16px;
		border-radius: 8px !important;
	}
}

.auth-message {
	margin-top: 15px;
	text-align: center;
	font-size: 14px;
}

.login-container .login-otp-btn {
	margin-bottom: 15px;
}

.custom-auth-logged-in {
	text-align: center;
	padding: 40px 20px;
}

.custom-auth-logged-in p {
	font-size: 18px;
	margin-bottom: 20px;
	color: #333;
}

.auth-button {
	display: inline-block;
	padding: 12px 25px;
	margin: 8px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: bold;
}

.auth-button:hover {
	opacity: 0.9;
}

.logout-btn {
	background: #dc3545;
	color: white;
}

.auth-notice {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.6;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #f0f0f0 !important;
}

body.light-mode .auth-notice {
	border-color: rgba(0, 0, 0, 0.2);
	color: #1a1a1a !important;
}

.auth-notice--success,
.auth-notice--info {
	background: transparent !important;
	color: inherit !important;
}

.auth-notice--error,
.auth-notice--google-error {
	border-color: rgba(220, 53, 69, 0.65);
	color: #ffb3bb !important;
}

body.light-mode .auth-notice--error,
body.light-mode .auth-notice--google-error {
	border-color: rgba(176, 0, 32, 0.45);
	color: #b00020 !important;
}

.auth-resend-activation {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.light-mode .auth-resend-activation {
	border-top-color: #e0e0e0;
}

.auth-resend-activation__title {
	margin: 0 0 12px;
	font-size: 15px;
	color: inherit;
	opacity: 0.85;
}

body.leemeenal-email-verification-off .auth-resend-activation {
	display: none !important;
}

.auth-google-oauth {
	margin-bottom: 20px;
}

.auth-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #fff;
	color: var(--color-brand) !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-btn:hover {
	opacity: 0.92;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

body.light-mode .auth-google-btn {
	border-color: #dadce0;
}

.auth-google-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 4px;
	color: inherit;
	opacity: 0.7;
	font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.2);
}

body.light-mode .auth-divider::before,
body.light-mode .auth-divider::after {
	background: #dadce0;
}
