/* ADB Pagina di accesso - wp-login.php. SardegnaIT srl - Paolo Pira.
   Layout of the SardegnaMondo login: full-screen photo, white box with the logo,
   tall fields, full-width button; one line with the copyright at the bottom. */

@font-face {
	font-family: "Titillium Web";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/TitilliumWeb-Regular.woff2) format("woff2");
}
@font-face {
	font-family: "Titillium Web";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/TitilliumWeb-SemiBold.woff2) format("woff2");
}
@font-face {
	font-family: "Titillium Web";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(fonts/TitilliumWeb-Bold.woff2) format("woff2");
}

.adb-login-bg {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
body.login {
	background-color: #2a3035;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	height: auto;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	overflow-x: hidden;
	font-family: "Titillium Web", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.login #login {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	margin: 5vh auto 24px;
	background: #fff;
	border-radius: 5px;
	max-width: 352px;
	width: calc(100% - 30px);
	padding: 26px 26px 6px;
}
body.login #login h1 a {
	background: none;
	width: 100%;
	height: auto;
	margin: 0 auto;
	padding: 0 0 4px;
	text-indent: 0;
	overflow: visible;
	display: block;
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	outline-offset: 2px;
}
body.login #login h1 a img {
	display: block;
	width: 170px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
body.login #login h1 a .adb-login-title {
	display: block;
	margin: 14px auto 0;
	max-width: 260px;
	font-family: "Titillium Web", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
	text-align: center;
	text-wrap: balance;
}
body.login #login > form {
	margin-top: 16px;
	margin-left: 0;
	padding: 0 24px 12px;
	background: #fff;
	border: 0;
	box-shadow: none;
	overflow: visible;
}
body.login #login > form label {
	color: #1a1a1a;
	font-size: 15px;
}
body.login #login > form .input,
body.login #login > form input[type="text"],
body.login #login > form input[type="email"],
body.login #login > form input[type="password"] {
	height: 48px;
	min-height: 48px;
	background: #fff;
	border-radius: 5px;
	margin-bottom: 18px;
	font-size: 15px;
	color: #1a1a1a;
	border-color: #8c8c8c;
	padding-left: 16px;
}
body.login #login > form .input:focus,
body.login #login > form input[type="text"]:focus,
body.login #login > form input[type="password"]:focus {
	border-color: #24577e;
	box-shadow: 0 0 0 1px #24577e;
}
body.login.wp-core-ui #login > form .button-primary,
body.login #login > form input[type="submit"] {
	background: #24577e;
	border-color: #24577e;
	color: #fff;
	margin: 7px 0;
	min-height: 46px;
	height: 46px;
	line-height: 1;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	width: 100%;
	float: none;
}
body.login.wp-core-ui #login > form .button-primary:hover,
body.login.wp-core-ui #login > form .button-primary:focus {
	background: #1b4262;
	border-color: #1b4262;
}
body.login.wp-core-ui #login > form .button-primary:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1b4262;
}
body.login input[type="checkbox"],
body.login input[type="checkbox"]:checked {
	border-color: #24577e !important;
	border-radius: 0;
}
body.login .button.wp-hide-pw .dashicons {
	color: #24577e;
}
body.login #nav,
body.login #backtoblog {
	text-align: center;
	padding: 0;
}
body.login #nav a,
body.login #backtoblog a {
	color: #24577e;
}
body.login #nav a:hover,
body.login #backtoblog a:hover {
	color: #1b4262;
}
body.login #login_error,
body.login .message,
body.login .notice {
	display: block;
}

/* Single sign-on (miniOrange): moved under the login button by adb-login.js,
   which also sets the button width (the plugin writes it inline). */
body.login #loginform .adb-login-sso {
	clear: both;
	padding-top: 14px;
}
body.login #loginform #mo_sso_button_title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
}
body.login #loginform .adb-login-sso-orig {
	display: none !important;
}
/* Access button in the Bootstrap Italia 2 style (as for SPID / CIE). */
body.login #loginform .adb-login-sso-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	margin: 0 0 6px;
	padding: 8px 16px;
	box-sizing: border-box;
	background: #0066cc;
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-family: "Titillium Web", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}
body.login #loginform .adb-login-sso-btn:hover {
	background: #0052a3;
	color: #fff;
}
body.login #loginform .adb-login-sso-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px #ff9900;
}
body.login #loginform .adb-login-sso-btn__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
}
body.login #loginform .adb-login-sso-btn__icon svg {
	fill: #0066cc;
}
body.login #loginform #mo_oauth_widget_parent {
	margin: 0;
}
body.login #loginform .oauthloginbutton {
	box-sizing: border-box;
}

/* Language selector under the box, in the page flow. */
body.login .language-switcher {
	position: relative;
	z-index: 1;
	margin: 0 auto 40px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 5px;
	width: auto;
	max-width: calc(100% - 30px);
	box-sizing: border-box;
}
body.login .language-switcher form {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}
body.login .language-switcher label {
	color: #1a1a1a;
}
body.login #language-switcher input[type="submit"] {
	background: #24577e;
	color: #fff;
	border-color: #24577e;
}

/* Footer: one line at the bottom of the page, after the content (never over it). */
body.login .adb-login-footer {
	position: relative;
	z-index: 1;
	margin-top: auto;
	background: rgba(42, 48, 53, 0.92);
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	padding: 14px 24px;
	text-align: center;
	box-sizing: border-box;
}
body.login .adb-login-footer p {
	margin: 0;
}
body.login .adb-login-footer__credito {
	margin-top: 4px;
	font-size: 12px;
	color: #d0d5d9;
}
body.login .adb-login-footer a {
	color: #fff;
}

@media screen and (max-width: 767px) {
	body.login #login {
		max-width: 300px;
		margin-top: 24px;
		margin-bottom: 48px;
	}
	body.login #login > form {
		padding-right: 0;
		padding-left: 0;
	}
	body.login .adb-login-footer {
		padding: 12px 16px;
	}
}
