/* "Continue with phone number" / "Continue with QR code" on the login form (LoveDate_Web_Login). */

.login-width-social .jws-alt-login {
	margin: 0 0 16px;
	text-align: left;
}

/* Same size and border as the theme's social login buttons (login_form.less). */
.login-width-social .jws-alt-login-toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 50px;
	border: 2px solid rgba(25, 18, 80, 0.05);
	border-radius: 5px;
	background: #fff;
	box-shadow: none;
	color: var(--heading, #191250);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: border-color 0.3s;
}

.login-width-social .jws-alt-login-toggle:hover,
.login-width-social .jws-alt-login-toggle:focus-visible {
	border-color: var(--main);
}

.login-width-social .jws-alt-login-icon {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	padding: 0 13px;
	color: var(--main);
}

.login-width-social .jws-alt-login-icon svg {
	display: block;
}

.login-width-social .jws-alt-login-label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.login-width-social .jws-alt-login-label b {
	color: inherit;
	font-weight: 500;
}

/* Heading of an open panel with a back arrow; the form's own heading is hidden meanwhile. */
.jws-alt-login-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin-bottom: 20px;
}

.jws-alt-login-head h5 {
	margin: 0;
}

.jws-alt-login-head-back {
	position: absolute;
	top: 50%;
	left: 0;
	display: flex;
	margin-left: -6px;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--heading, #191250);
	cursor: pointer;
	transform: translateY(-50%);
}

.jws-alt-login-head-back:hover {
	color: var(--main);
}

.rtl .jws-alt-login-head-back {
	right: 0;
	left: auto;
	margin-right: -6px;
	margin-left: 0;
}

.rtl .jws-alt-login-head-back svg {
	transform: scaleX(-1);
}

/* ---------- Phone ---------- */

.jws-phone-login-panel[hidden],
.jws-phone-login-panel form[hidden],
.jws-qr-login-panel[hidden] {
	display: none;
}

.jws-phone-login-panel {
	position: relative;
}

/* Country code and number in one box, split by a hairline, like the theme's inputs. */
.jws-phone-login-field {
	display: flex;
	align-items: center;
	height: 50px;
	border: 1px solid rgba(25, 18, 80, 0.05);
	border-radius: 5px;
	background: rgba(25, 18, 80, 0.05);
	transition: border-color 0.3s;
}

.jws-phone-login-field:focus-within {
	border-color: var(--main);
}

.jws-phone-login-panel .jws-phone-login-field input.input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 17px;
	border: 0;
	border-radius: 0 5px 5px 0;
	background: transparent;
	font-size: 15px;
}

.jws-phone-login-panel .jws-phone-login-country {
	flex: 0 0 96px;
	width: 96px;
	height: 48px;
	margin: 0;
	padding: 0 8px 0 14px;
	border: 0;
	border-right: 1px solid rgba(25, 18, 80, 0.1);
	border-radius: 5px 0 0 5px;
	background: transparent;
	color: inherit;
}

.jws-phone-login-field .select2-container {
	flex: 0 0 126px;
	width: 126px !important;
	min-width: 0 !important;
	border-right: 1px solid rgba(25, 18, 80, 0.1);
}

.jws-phone-login-field .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: 48px;
	border: 0;
	border-radius: 5px 0 0 5px;
	background: transparent;
	outline: 0;
}

.jws-phone-login-field .select2-container .select2-selection__rendered {
	padding-right: 22px !important;
	padding-left: 14px;
	color: inherit;
	line-height: 48px;
}

.jws-phone-login-field .select2-container .select2-selection__arrow {
	position: absolute;
	top: 0;
	right: 6px;
	width: 16px;
	height: 48px;
}

.jws-phone-login-field .select2-container .select2-selection__arrow b {
	display: none;
}

.jws-phone-login-field .select2-container .select2-selection__arrow::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: 0.6;
	transform: translate(-50%, -75%) rotate(45deg);
}

/* The open list is wider than the closed picker so whole country names fit. */
.jws-phone-login-panel .select2-dropdown {
	min-width: 260px !important;
	border: 1px solid rgba(25, 18, 80, 0.1);
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 30px rgba(25, 18, 80, 0.12);
	text-align: left;
}

.jws-phone-login-panel .select2-search--dropdown {
	padding: 8px;
}

.jws-phone-login-panel .select2-search--dropdown .select2-search__field {
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(25, 18, 80, 0.1);
	border-radius: 5px;
	background: #fff;
}

.jws-phone-login-panel .select2-results__option {
	padding: 8px 12px;
}

.jws-phone-login-panel .select2-results__option--highlighted,
.jws-phone-login-panel .select2-results__option--highlighted[aria-selected] {
	background: var(--main);
	color: #fff;
}

.jws-phone-login-panel input.jws-phone-login-code {
	width: 100%;
	height: 50px;
	margin: 0;
	letter-spacing: 8px;
	text-align: center;
	font-size: 18px;
}

/* Like the login form's own submit button; the theme styles buttons under #jws-login-form .jws-animation form. */
.jws-login-container .jws-phone-login-panel .button,
#jws-login-form .jws-animation .jws-phone-login-panel form .button.elementor-button {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 12px;
	padding: 13px 26px;
	border: 0;
	border-radius: 5px;
	background: var(--main);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

.jws-login-container .jws-phone-login-panel .button:disabled,
#jws-login-form .jws-animation .jws-phone-login-panel form .button.elementor-button:disabled {
	opacity: 0.6;
}

.jws-phone-login-hint,
.jws-phone-login-sent {
	margin: 8px 0 0;
	font-size: 14px;
	text-align: center;
}

.jws-phone-login-sent {
	margin: 0 0 10px;
}

.jws-phone-login-sent[hidden],
.jws-phone-login-test[hidden],
.jws-phone-login-message[hidden],
.jws-phone-login-links button[hidden] {
	display: none;
}

/* Test mode: the code is shown instead of texted. Amber so it reads as "not the real thing". */
.jws-phone-login-test {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 10px;
	padding: 10px 12px;
	border: 1px solid rgba(245, 166, 35, 0.55);
	border-radius: 5px;
	background: rgba(245, 166, 35, 0.14);
	font-size: 14px;
}

.jws-phone-login-test-text {
	flex: 1 1 200px;
}

.jws-phone-login-test button,
.jws-phone-login-links button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--main);
	font: inherit;
	cursor: pointer;
}

.jws-phone-login-test button {
	font-weight: 600;
}

.jws-phone-login-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	margin-top: 10px;
	font-size: 14px;
}

.jws-phone-login-links button:disabled {
	color: inherit;
	opacity: 0.6;
	cursor: default;
}

.jws-phone-login-message {
	margin: 10px 0 0;
	color: var(--main);
	font-size: 14px;
	text-align: center;
}

.jws-phone-login-message.is-error {
	color: #cb2a1c;
}

.jws-phone-login.is-loading .jws-phone-login-panel {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- QR code ---------- */

.jws-qr-login-panel {
	text-align: center;
}

/* Black on white whatever the site's colors: a scanner needs the contrast and the quiet zone. */
.jws-qr-login-code {
	position: relative;
	width: 200px;
	height: 200px;
	margin: 0 auto;
	padding: 12px;
	border: 1px solid rgba(25, 18, 80, 0.1);
	border-radius: 5px;
	background: #fff;
}

.jws-qr-login-canvas {
	width: 100%;
	height: 100%;
}

.jws-qr-login-canvas svg {
	display: block;
	width: 100%;
	height: 100%;
}

.jws-qr-login.is-loading .jws-qr-login-canvas {
	opacity: 0.15;
	transition: opacity 0.2s;
}

.jws-qr-login.is-loading .jws-qr-login-code::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid rgba(25, 18, 80, 0.1);
	border-top-color: var(--main);
	border-radius: 50%;
	animation: ldQrSpin 0.8s linear infinite;
}

.jws-qr-login-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--heading, #191250);
}

.jws-qr-login-overlay[hidden],
.jws-qr-login-refresh[hidden] {
	display: none;
}

.jws-qr-login-overlay p {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
}

.jws-qr-login.is-scanned .jws-qr-login-overlay-text {
	color: var(--main);
	font-weight: 600;
}

.jws-qr-login-refresh {
	padding: 6px 14px;
	border: 1px solid var(--main);
	border-radius: 5px;
	background: transparent;
	color: var(--main);
	font-size: 14px;
	cursor: pointer;
}

.jws-qr-login-status {
	max-width: 320px;
	margin: 12px auto 0;
	font-size: 14px;
}

/* ---------- While a panel is open ---------- */

.jws-login-form .jws-alt-login-back {
	display: none;
	width: 100%;
	margin: 6px 0 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--main);
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

/* The open panel stands alone with its own heading: the form, its heading, the demo
 * accounts, the social buttons and the other panel's button step aside. */
.jws-login-form.is-alt-login .jws-alt-login-back {
	display: block;
}

.jws-login-form.is-alt-login .jws-login .jws_heading_form,
.jws-login-form.is-alt-login .jws-login .jws_account_demo,
.jws-login-form.is-alt-login .jws-login .jws_text_note,
.jws-login-form.is-alt-login .jws-login .social-line,
.jws-login-form.is-alt-login .jws-login .nsl-container,
.jws-login-form.is-alt-login .jws-login form[name="loginpopopform"],
.jws-login-form.is-alt-login .jws-login>.popup-message,
.jws-login-form.is-alt-login .login-width-social .jws-alt-login:not(.is-open),
.jws-login-form.is-alt-login .login-width-social .jws-alt-login-toggle {
	display: none !important;
	/* The theme styles these under #jws-login-form. */
}

/* The theme clips this wrapper for its animation, which would cut off the country list. */
.jws-login-form.is-alt-login .jws-login .jws-animation {
	overflow: visible !important;
}

@keyframes ldAltSwitch {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.jws-login-form.is-alt-switching .jws-login {
	animation: ldAltSwitch 0.25s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.jws-login-form.is-alt-switching .jws-login {
		animation: none;
	}
}

@keyframes ldQrSpin {
	to {
		transform: rotate(360deg);
	}
}