/* Structural styles only: layout, spinner and error state.
   Colours, typography and button styling are left to the theme. */

/* Elementor global fonts: Text for the form and panel buttons, Primary for the welcome line.
   Without Elementor the variable is unset, the declaration is dropped, and the parent's (theme) font is inherited. */
.jsc-login-form .jsc-field label,
.jsc-login-form .jsc-field input,
.jsc-login-form .jsc-login-button,
.jsc-login-form .jsc-forgot-password,
.jsc-login-form .jsc-login-message,
.jsc-member-panel .jsc-panel-action button {
	font-family: var(--e-global-typography-text-font-family);
}

.jsc-member-panel .jsc-member-welcome {
	font-family: var(--e-global-typography-primary-font-family);
}

.jsc-login-form .jsc-field {
	margin-bottom: 15px;
}

.jsc-login-form .jsc-field label {
	display: block;
	margin-bottom: 5px;
}

.jsc-login-form .jsc-field input {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.jsc-login-form .jsc-password-wrap {
	position: relative;
}

.jsc-login-form .jsc-password-wrap input {
	padding-right: 44px;
}

.jsc-login-form .jsc-password-toggle {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	cursor: pointer;
}

/* Themes style every button (fill, pill radius, size, hover colours), so this control resets those in every state. */
.jsc-login-form .jsc-password-toggle,
.jsc-login-form .jsc-password-toggle:hover,
.jsc-login-form .jsc-password-toggle:focus,
.jsc-login-form .jsc-password-toggle:active {
	width: 40px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #50575e !important;
	transform: none !important;
	text-decoration: none;
}

.jsc-login-form .jsc-password-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -6px;
}

/* Themes often set "svg { fill: currentColor }", which beats the fill attribute and turns the outline icon solid. */
.jsc-login-form .jsc-password-toggle svg,
.jsc-login-form .jsc-password-toggle svg path {
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jsc-login-form .jsc-eye-slash {
	display: none;
}

.jsc-login-form .jsc-password-toggle[aria-pressed="true"] .jsc-eye-slash {
	display: inline;
}

.jsc-login-form .jsc-login-message {
	margin-bottom: 1em;
}

.jsc-login-form .jsc-login-message:empty {
	display: none;
}

.jsc-login-form .jsc-login-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.jsc-login-form .jsc-login-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.jsc-login-form .jsc-spinner {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	box-sizing: border-box;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: jsc-spin 0.8s linear infinite;
}

.jsc-login-form .jsc-spinner[hidden] {
	display: none;
}

.jsc-login-form .jsc-forgot-password {
	margin: 12px 0 0;
}

.jsc-member-panel {
	text-align: center;
}

.jsc-member-panel .jsc-member-welcome {
	margin: 0 0 24px;
}

.jsc-member-panel .jsc-panel-action {
	margin: 0 0 16px;
}

.jsc-member-panel .jsc-panel-action button {
	display: block;
	width: 100%;
	cursor: pointer;
}

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