/*
 * smacznymods: sign-in through smaczny.pl. Loaded only while the smaczny.pl login method is enabled
 * (template "Smaczny: style aplikacji"), so switching it off (install-smacznymods.php --sso=off or in
 * ACP) brings back the forum's own registration and sign-in layout. Texts come from the app
 * language (--smacznymods-legacy-login, set by the same template).
 */

/* Guest corner: registration happens on the site ("Dołącz do Klubu" / the sign-in popup link), so
   the forum's own sign-up item is hidden. */
.ipsUserNav--guest > li[data-el="sign-up"] {
	display: none;
}

/* Sign-in popup: "Zaloguj przez smaczny.pl" first (one account for the site and the forum), the
   legacy forum password form below it for old accounts. IC5 has no hook points in the popup, so
   the order comes from CSS; the heading and hint are core texts SiteSync builds from app strings. */
#elUserSignIn_menu .iDropdown {
	width: min(360px, 100vw - 32px);
}

#elUserSignIn_menu [data-role="loginForm"] > .ipsColumns {
	display: flex;
	flex-direction: column-reverse;
}

#elUserSignIn_menu [data-role="loginForm"] > .ipsColumns > * {
	flex: 0 0 auto;
	width: 100%;
	border: 0;
}

#elUserSignIn_external .ipsTitle {
	color: var(--i-color_hard);
}

#elUserSignIn_external .smacznySsoHint {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 400;
	color: var(--i-color_soft);
}

#elUserSignIn_external .smacznySsoHint a {
	color: var(--i-primary);
	font-weight: 500;
}

#elUserSignIn_external .ipsSocial {
	width: 100%;
	min-height: 44px;
	justify-content: center;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
}

#elUserSignIn_internal {
	border-top: 1px solid var(--i-color_border, rgba(0, 0, 0, .1)) !important;
}

#elUserSignIn_internal::before {
	content: var(--smacznymods-legacy-login, none);
	display: block;
	padding: 12px 16px 0;
	font-size: 13px;
	color: var(--i-color_soft);
}

#elUserSignIn_internal > div > .ipsTitle {
	display: none;
}

#elUserSignIn_internal button[value="usernamepassword"] {
	background: transparent;
	color: var(--i-primary);
	border: 1px solid var(--i-primary);
}

/* Login page (/login/): the smaczny.pl column first, the legacy password form after it. */
.ipsColumns--login {
	flex-direction: row-reverse;
}

@media (max-width: 979px) {
	.ipsColumns--login {
		flex-direction: column-reverse;
	}
}

.ipsColumns--login > .ipsColumns__secondary .ipsSocial {
	width: 100%;
	min-height: 48px;
	justify-content: center;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
}

.ipsColumns--login > .ipsColumns__primary > .i-padding_3:first-child > * {
	display: none;
}

.ipsColumns--login > .ipsColumns__primary > .i-padding_3:first-child::before {
	content: var(--smacznymods-legacy-login, none);
	font-weight: 500;
	color: var(--i-color_soft);
}

.ipsColumns--login > * {
	flex: 0 0 auto;
}

.ipsColumns--login > .ipsColumns__primary {
	flex: 1 1 auto;
}

.ipsColumns--login > .ipsColumns__secondary a {
	color: var(--i-primary);
	font-weight: 500;
}

.ipsColumns--login button[value="usernamepassword"] {
	background: transparent;
	color: var(--i-primary);
	border: 1px solid var(--i-primary);
}
