:root {
	color-scheme: light;
}

html,
body.feml-standalone-page {
	margin: 0;
	min-height: 100%;
}

body.feml-standalone-page {
	background: #f0f0f1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.feml-main {
	min-height: 100vh;
}

.feml-login-screen {
	box-sizing: border-box;
	display: grid;
	min-height: 100vh;
	padding: 40px 20px;
	place-items: center;
	background-color: var(--feml-background-color, #f0f0f1);
	background-image: var(--feml-background-image, none);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #1d2327;
}

.feml-login-screen *,
.feml-login-screen *::before,
.feml-login-screen *::after {
	box-sizing: border-box;
}

.feml-login-card {
	width: min(100%, 380px);
	padding: 34px 36px 30px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	background: var(--feml-card-color, #fff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
}

.feml-brand {
	display: flex;
	justify-content: center;
	margin: 0 auto 22px;
	color: #1d2327;
	text-decoration: none;
}

.feml-brand img {
	display: block;
	max-width: 100%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.feml-brand-placeholder {
	display: grid;
	min-width: 96px;
	min-height: 72px;
	padding: 14px 18px;
	place-items: center;
	border-radius: 6px;
	background: #f6f7f7;
	font-size: 19px;
	font-weight: 650;
	line-height: 1.35;
	text-align: center;
}

.feml-login-card h1 {
	margin: 0;
	color: #1d2327;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

.feml-subtitle {
	margin: 8px 0 24px;
	color: #646970;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.feml-login-form p {
	margin: 0 0 18px;
}

.feml-login-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	line-height: 1.4;
}

.feml-login-form input[type="text"],
.feml-login-form input[type="email"],
.feml-login-form input[type="password"] {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 0 0 transparent;
	color: #2c3338;
	font: inherit;
	font-size: 18px;
	line-height: 1.3;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.feml-password-wrap {
	position: relative;
	display: block;
}

.feml-password-wrap input[type="password"],
.feml-password-wrap input[type="text"] {
	padding-right: 62px;
}

.feml-toggle-password {
	position: absolute;
	top: 50%;
	right: 5px;
	min-width: 48px;
	min-height: 34px;
	padding: 4px 7px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #50575e;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
}

.feml-toggle-password:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.feml-toggle-password:focus-visible {
	outline: 2px solid var(--feml-button-color, #2271b1);
	outline-offset: 0;
}

.feml-login-form input[type="text"]:focus,
.feml-login-form input[type="email"]:focus,
.feml-login-form input[type="password"]:focus {
	border-color: var(--feml-button-color, #2271b1);
	box-shadow: 0 0 0 1px var(--feml-button-color, #2271b1);
	outline: 2px solid transparent;
}

.feml-login-form .feml-remember-row {
	margin-bottom: 18px;
}

.feml-remember-row label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #50575e;
}

.feml-remember-row input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--feml-button-color, #2271b1);
}

.feml-submit,
.feml-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 9px 18px;
	border: 1px solid var(--feml-button-color, #2271b1);
	border-radius: 4px;
	background: var(--feml-button-color, #2271b1);
	box-shadow: none;
	color: var(--feml-button-text-color, #fff);
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: filter 0.12s ease, transform 0.12s ease;
}

.feml-submit:hover,
.feml-primary-button:hover {
	filter: brightness(0.9);
	color: var(--feml-button-text-color, #fff);
}

.feml-submit:focus-visible,
.feml-primary-button:focus-visible,
.feml-links a:focus-visible,
.feml-secondary-link:focus-visible,
.feml-brand:focus-visible {
	outline: 2px solid var(--feml-button-color, #2271b1);
	outline-offset: 3px;
}

.feml-submit:active,
.feml-primary-button:active {
	transform: translateY(1px);
}

.feml-links {
	margin-top: 22px;
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.feml-links a,
.feml-secondary-link {
	color: #50575e;
	text-decoration: none;
}

.feml-links a:hover,
.feml-secondary-link:hover {
	color: var(--feml-button-color, #2271b1);
	text-decoration: underline;
}

.feml-notice {
	margin: 18px 0;
	padding: 10px 12px;
	border-left: 4px solid #72aee6;
	background: #f6f7f7;
	font-size: 14px;
	line-height: 1.5;
}

.feml-notice p {
	margin: 0;
}

.feml-notice-error {
	border-left-color: #d63638;
}

.feml-notice-success {
	border-left-color: #00a32a;
}

.feml-signed-in {
	margin: 22px 0;
	color: #3c434a;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.feml-actions {
	display: grid;
	gap: 18px;
	text-align: center;
}

@media (max-width: 480px) {
	.feml-login-screen {
		padding: 20px 12px;
	}

	.feml-login-card {
		padding: 28px 22px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.feml-login-screen * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

