/* Login, password reset and not-found screens. Shared with the WP plugin (include/css/public.css): keep both copies the same. */

.gl-login {
	max-width: 360px;
	margin: 0 auto;
	font-size: 15px;
	font-weight: 500;
}

.gl-login .branding_title {
	margin-top: 8px;
	font-size: 19px;
	text-align: center;
}

.gl-login .branding_subtitle {
	margin-bottom: 20px;
	font-size: 14px;
	text-align: center;
}

.gl-login__card {
	border: 1px solid #d5d8de;
	border-radius: 6px;
	background: #fff;
	padding: 40px 24px 20px;
}

/* The PDF keeps everything in a narrow column inside the card */
.gl-login__card > * {
	max-width: 250px;
	margin-left: auto;
	margin-right: auto;
}

/* Headings and help text can run wider than the column, as in the PDF */
.gl-login__card > h4,
.gl-login__card > .gl-login__text {
	max-width: none;
}

.gl-login .branding_title + .gl-login__card {
	margin-top: 20px;
}

.gl-login__sr,
.gl-login .spf_form_group label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gl-login h4 {
	margin-bottom: 14px;
	font-size: 17px;
	font-weight: 500;
	text-align: center;
}

.gl-login h4.gl-login__heading--strong {
	font-size: 16px;
	font-weight: 700;
}

.gl-login__text {
	margin-bottom: 20px;
	font-size: 14px;
	text-align: center;
}

/* Social buttons */

.gl-login__social {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 32px;
	margin-bottom: 6px;
	border: 1px solid #d5d8de;
	border-radius: 4px;
	background: #fff;
	color: #333;
	text-decoration: none !important;
	overflow: hidden;
}

.gl-login__social:hover,
.gl-login__social:focus {
	background: #f6f7f9;
	color: #333;
}

.gl-login__social-icon {
	flex: 0 0 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid #d5d8de;
}

.gl-login__social-icon img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: block;
}

.gl-login__social-label {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	white-space: nowrap;
}

.gl-login__or {
	margin-top: 18px;
	margin-bottom: 22px;
	color: #6c757d;
	text-align: center;
}

/* Email form */

.gl-login__field,
.gl-login .spf_form_group {
	margin-bottom: 10px;
}

.gl-login .form-control {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 36px;
	box-sizing: border-box;
	padding: 6px 10px;
	border: 1px solid #cfd4da;
	border-radius: 0;
	font-size: 15px;
	font-weight: 500;
	box-shadow: none;
}

.gl-login__alert {
	margin-top: 4px;
	margin-bottom: 0;
	padding: 10px 12px;
	border-radius: 0;
	font-size: 14px;
}

.gl-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

.gl-login a {
	text-decoration: none;
}

.gl-login__row .btn {
	min-width: 70px;
	height: 30px;
	padding: 0 18px;
	border-radius: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 30px;
}

/* WP themes (e.g. Hello Elementor) reset [type=submit] to a transparent button and load after Bootstrap,
   so restate .btn-primary with more specificity. Client CSS on #spf_form_save_btn (an id) still wins. */
.gl-login .btn-primary {
	border: 1px solid var(--bs-primary, #0d6efd);
	background-color: var(--bs-primary, #0d6efd);
	color: #fff;
	text-transform: none;
	white-space: nowrap;
}

.gl-login .btn-primary:hover,
.gl-login .btn-primary:focus {
	filter: brightness(0.9);
	color: #fff;
}

.gl-login .btn-primary:disabled {
	opacity: 0.65;
}

.gl-login .spf_form_footer .btn,
.gl-login__submit {
	display: block;
	width: 100%;
	height: 32px;
	padding: 0;
	border-radius: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 32px;
}

.gl-login .spf_form_footer {
	margin-top: 12px;
}

.gl-login__back {
	display: block;
	margin-top: 16px;
	text-align: center;
}

.gl-login__links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	font-size: 14px;
}

/* powered by {tenant logo} */

.gl-login__powered {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
	padding-top: 12px;
	border-top: 1px solid #dee2e6;
}

.gl-login__powered span {
	color: #222;
	font-size: 12px;
	font-style: italic;
}

.gl-login__powered img {
	display: block;
	width: auto;
	height: 24px;
}
