/*
 * With hide_login_form set, core replaces the username/password form with an
 * info note card reading "The Nextcloud login form is disabled. Use another
 * login option...". On this page that is pure noise: the two buttons directly
 * below already say what to do, and the reader is not the administrator being
 * pointed at. Replace it with the household mark.
 *
 * Scoped to a note card that is immediately followed by the login buttons, so a
 * real notice -- a failed-login error on ?direct=1, say -- is never hidden.
 * Needs :has(); where that is unsupported the note card simply stays, which is
 * the current behaviour rather than a broken page.
 */
.login-box .notecard:has(+ #alternative-logins) {
	display: none;
}

#alternative-logins::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 1.5rem;
	background: url("../img/homeauth.svg") center / contain no-repeat;
}

/* The mark is a mid-green stroke drawn for light backgrounds; lift it so it
 * keeps its weight on the dark theme instead of sinking into the panel. */
@media (prefers-color-scheme: dark) {
	body:not([data-themes*="light"]) #alternative-logins::before {
		filter: brightness(1.55);
	}
}

body[data-themes*="dark"] #alternative-logins::before {
	filter: brightness(1.55);
}
