/* Scoped presentation only. Authentication forms and messages remain native WordPress. */
body.screlio-signin, body.screlio-native-login {
	margin: 0; background: #fcfdfb; color: #19291f;
	font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	min-height: 100vh; height: auto;
}
:is(.screlio-signin, .screlio-native-login) * { box-sizing: border-box; }
:is(.screlio-signin, .screlio-native-login) a { color: #17553d; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:is(.screlio-signin, .screlio-native-login) :is(a, button, input, select):focus-visible { outline: 3px solid #26835f; outline-offset: 4px; box-shadow: none; }
.sl-auth-header { max-width: 1560px; margin: auto; padding: 26px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sl-auth-brand { display: inline-flex; align-items: center; gap: 11px; color: #101710 !important; font-size: 25px; font-weight: 750; text-decoration: none; letter-spacing: -1px; }
.sl-auth-brand img { display: block; width: 36px; height: 36px; border-radius: 9px; }
.sl-auth-back { text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sl-auth-back span { margin-left: 8px; }
.sl-auth-layout { max-width: 1560px; min-height: calc(100vh - 90px); margin: auto; padding: 6px 24px 28px 40px; display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.3fr); align-items: stretch; gap: clamp(32px, 5vw, 80px); }
.sl-auth-form, body.screlio-native-login #login { align-self: center; width: 100%; max-width: 420px; min-width: 0; margin: 0 auto; padding: 32px 0; }
.sl-auth-intro { margin-bottom: 36px; }
.sl-auth-intro h1 { margin: 0 0 18px; color: #16271e; font-size: clamp(34px, 3.5vw, 52px); font-weight: 700; letter-spacing: -2px; line-height: 1.12; }
.sl-auth-intro p { margin: 6px 0; font-size: 16px; color: #566059; }
.sl-auth-intro p:first-of-type { color: #293a30; font-size: 18px; }
#screlio-loginform { display: grid; gap: 22px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
#screlio-loginform p { margin: 0; }
#screlio-loginform label { display: block; margin-bottom: 8px; color: #243b2d; font-size: 14px; font-weight: 600; }
#screlio-loginform :is(input[type=text], input[type=password]) {
	display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 14px;
	background: #fff; border: 1px solid #c8d2c8; border-radius: 8px; color: #182b20; font: inherit; font-size: 16px;
}
#screlio-loginform .login-password { position: relative; }
#screlio-loginform .login-password input { padding-right: 72px; }
#screlio-loginform .sl-show-password { position: absolute; right: 7px; bottom: 6px; min-width: 54px; min-height: 40px; padding: 6px; border: 0; border-radius: 5px; color: #17553d; background: transparent; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#screlio-loginform .sl-show-password:hover { background: #edf3ec; }
#screlio-loginform .login-remember label { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 400; margin: 0; min-height: 24px; }
#screlio-loginform input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: #17553d; flex-shrink: 0; }
#screlio-loginform input[type=submit], body.screlio-native-login #login .submit .button-primary {
	display: block; float: none; width: 100%; min-height: 52px; padding: 12px 20px; margin: 0;
	border: 1px solid #154d36; border-radius: 8px; background: #154d36; color: white; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-shadow: none; box-shadow: none;
}
#screlio-loginform input[type=submit]:hover, body.screlio-native-login #login .submit .button-primary:hover { background: #0b3926; }
.sl-auth-recovery { display: block; width: fit-content; margin: 16px auto 0; font-size: 13px; }
.sl-auth-hint { margin: 20px 0 0; color: #626c65; text-align: center; font-size: 13px; }
.sl-auth-help { margin: 36px 0 0; border-top: 1px solid #e2e7df; padding-top: 24px; color: #626c65; text-align: center; font-size: 13px; }
.sl-auth-help a { margin-left: 4px; font-weight: 600; }
.sl-auth-hero { min-width: 0; background: #edf3ec; border: 1px solid #e6ede2; border-radius: 26px; padding: clamp(24px, 3vw, 48px) 0 28px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.sl-auth-story { padding: 0 clamp(24px, 3vw, 48px); }
.sl-auth-story h2 { margin: 0 0 16px; font-size: clamp(30px, 3.1vw, 48px); font-weight: 650; letter-spacing: -1.6px; line-height: 1.13; color: #173c2b; }
.sl-auth-story p { margin: 0; color: #506055; max-width: 390px; font-size: 15px; }
.sl-auth-art { display: block; margin: 12px 0; width: 100%; }
.sl-auth-art img { display: block; width: 100%; height: auto; mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent); }
.sl-auth-features { list-style: none; display: grid; grid-template-columns: 1fr 1.4fr 1fr; padding: 0 24px; margin: auto 0 0; gap: 12px; }
.sl-auth-features li { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 600; color: #294735; }
.sl-auth-features li + li { border-left: 1px solid #cbd9c8; }
.sl-auth-features span { display: grid; place-items: center; width: 32px; height: 32px; background: #dbe7d8; border-radius: 50%; font-size: 22px; font-weight: 400; flex-shrink: 0; }
/* Style native failed-sign-in, password reset, registration and MFA screens without intercepting them. */
body.screlio-native-login #login { grid-column: 1; grid-row: 1; }
body.screlio-native-login #login .wp-login-logo { display: none; }
body.screlio-native-login #login form { border: 0; box-shadow: none; background: none; padding: 0; margin: 24px 0 0; overflow: visible; }
body.screlio-native-login #login label { font-size: 14px; font-weight: 500; }
body.screlio-native-login #login :is(input[type=text], input[type=password], input[type=email]) { border: 1px solid #c8d2c8; border-radius: 8px; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 16px; width: 100%; background: white; color: #182b20; }
body.screlio-native-login #login .wp-pwd input { padding-right: 50px; }
body.screlio-native-login #login .wp-hide-pw { min-height: 50px; color: #17553d; }
body.screlio-native-login #login .forgetmenot { float: none; margin: 8px 0 20px; }
body.screlio-native-login #login :is(#nav, #backtoblog) { padding: 0; text-align: center; }
body.screlio-native-login #login :is(.message, .notice, #login_error) { border-radius: 8px; padding: 14px 18px; box-shadow: none; overflow-wrap: anywhere; }
body.screlio-native-login .sl-auth-hero { grid-column: 2; grid-row: 1 / span 2; }
body.screlio-native-login .language-switcher { grid-column: 1; margin: 0 auto; max-width: 100%; padding: 8px; }
body.screlio-native-login .language-switcher form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 1100px) {
	.sl-auth-layout { gap: 32px; }
	.sl-auth-features { gap: 8px; padding: 0 16px; }
	.sl-auth-features span { display: none; }
}
@media (max-width: 900px) {
	.sl-auth-layout { display: block; padding: 12px 24px 36px; min-height: auto; }
	.sl-auth-hero { display: none; }
	.sl-auth-header { padding: 24px; }
	.sl-auth-form, body.screlio-native-login #login { max-width: 420px; padding: 32px 0; }
}
@media (max-width: 400px) {
	.sl-auth-header { padding: 20px; gap: 12px; }
	.sl-auth-brand { font-size: 22px; }
	.sl-auth-back { font-size: 12px; }
	.sl-auth-back span { margin-left: 0; }
	.sl-auth-layout { padding: 0 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { body.screlio-native-login form.shake { animation: none; } }
