/* Login page in Peakweb's style (Core inc/login.php). Firn, graniet, alpengloed; Sora. */

body.login {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	padding: 48px 48px 48px calc(50% + 48px);
	box-sizing: border-box;
	background: #f5f3ef;
	color: #1c2b33;
	font-family: Sora, system-ui, sans-serif;
	font-size: 16px;
}

.login a { color: #1c2b33; text-underline-offset: 2px; }
.login a:hover { color: #3e5461; }
.login a:focus,
.login input:focus,
.login button:focus { box-shadow: none; outline: 3px solid #ea7d55; outline-offset: 2px; }

/* Landscape: left half, on top on phones. */
.pw-login-scene {
	position: fixed;
	inset: 0 50% 0 0;
	overflow: hidden;
	background: #f7d9c6;
}
.pw-login-mountains { position: absolute; inset: 0; width: 100%; height: 100%; }
.pw-login-mountains--narrow { display: none; }
.pw-login-logo { position: relative; display: block; width: auto; height: 34px; margin: 48px 56px; }
.pw-login-tagline {
	position: absolute;
	left: 56px;
	right: 56px;
	bottom: 56px;
	max-width: 440px;
	margin: 0;
	color: #fff;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.pw-login-tagline span {
	display: block;
	margin-bottom: 8px;
	color: #dde5e8;
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#login { width: 400px; max-width: 100%; margin: 0; padding: 0; }
.login h1.wp-login-logo { display: none; }

.pw-login-intro h2 { margin: 0 0 8px; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.pw-login-intro p { margin: 0 0 28px; color: #5b6b73; line-height: 1.55; }

.pw-login-portal {
	margin: 0 0 28px;
	padding: 14px 18px;
	border: 1px solid #dde5e8;
	border-radius: 12px;
	background: #fff;
}
.pw-login-portal p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.pw-login-portal b { font-weight: 600; }
.login .pw-login-portal__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	box-sizing: border-box;
	border: 1.5px solid #1c2b33;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}
.login .pw-login-portal__link:hover { background: #1c2b33; color: #fff; }

.login #login_error,
.login .message,
.login .notice,
.login .success {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1.5px solid #dde5e8;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	font-size: 14px;
}
.login #login_error,
.login .notice-error { border-color: #ea7d55; }

.login form {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}
.login label { font-size: 14px; font-weight: 500; line-height: 1.5; }
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	height: 48px;
	min-height: 48px;
	margin: 6px 0 18px;
	padding: 0 16px;
	border: 1.5px solid #9fbcca;
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: #1c2b33;
	font-family: inherit;
	font-size: 16px;
}
.login form .input:focus { border-color: #1c2b33; }
.login .wp-pwd input[type="password"],
.login .wp-pwd input[type="text"] { padding-right: 56px; }
.login .button.wp-hide-pw {
	top: 8px;
	right: 4px;
	width: 44px;
	height: 44px;
	min-height: 44px;
	border-radius: 10px;
	color: #3e5461;
}
.login .button.wp-hide-pw:focus { border-color: transparent; }

.login .forgetmenot { float: none; display: flex; align-items: center; min-height: 44px; margin: 0 0 18px; }
.login .forgetmenot input[type="checkbox"] { width: 20px; height: 20px; margin: 0 10px 0 0; border-color: #9fbcca; border-radius: 4px; }
.login .forgetmenot label { font-weight: 400; }

.login .submit { clear: both; }
.login .button-primary,
.login #wp-submit {
	float: none;
	width: 100%;
	height: 52px;
	min-height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: #1c2b33;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-shadow: none;
}
.login .button-primary:hover,
.login .button-primary:focus,
.login #wp-submit:hover { background: #3e5461; color: #fff; }

.login #nav,
.login #backtoblog { margin: 0; padding: 0; font-size: 14px; }
.login #nav { margin-top: 20px; }
.login #backtoblog {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #dde5e8;
}
.login #nav a,
.login #backtoblog a { color: #5b6b73; }
.login .privacy-policy-page-link { margin: 16px 0 0; text-align: left; font-size: 14px; }

.pw-login-help { width: 400px; max-width: 100%; margin: 8px 0 0; color: #5b6b73; font-size: 14px; }
.language-switcher + .pw-login-help { margin-top: 20px; }

/* Language: left-aligned with the form, select and button in one row. */
.login .language-switcher { width: 400px; max-width: 100%; margin: 20px 0 0; padding: 0; text-align: left; }
.login #language-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.login #language-switcher label {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-basis: 100%;
	margin: 0;
	color: #5b6b73;
}
.login #language-switcher label .dashicons { width: 18px; height: 18px; margin: 0; font-size: 18px; }
.login #language-switcher select {
	flex: 1;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 36px 0 14px;
	border: 1.5px solid #9fbcca;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: none;
	color: #1c2b33;
	font-family: inherit;
	font-size: 15px;
}
.login #language-switcher select:focus { border-color: #1c2b33; }
.login .language-switcher .button {
	display: inline-flex;
	align-items: center;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 20px;
	border: 1.5px solid #1c2b33;
	border-radius: 999px;
	background: none;
	box-shadow: none;
	color: #1c2b33;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
}
.login .language-switcher .button:hover,
.login .language-switcher .button:focus { background: #1c2b33; color: #fff; }

@media (max-width: 782px) {
	body.login { justify-content: flex-start; align-items: stretch; padding: 0; }
	.pw-login-scene { position: relative; inset: auto; height: 176px; flex-shrink: 0; }
	.pw-login-logo { height: 26px; margin: 24px 20px; }
	.pw-login-tagline,
	.pw-login-mountains--wide { display: none; }
	.pw-login-mountains--narrow { display: block; }
	#login { width: auto; padding: 28px 20px 0; }
	.pw-login-intro h2 { font-size: 28px; }
	.pw-login-help { width: auto; padding: 0 20px 24px; }
	.login .language-switcher { width: auto; padding: 0 20px; }
}

/*
 * The small login box WordPress opens in an iframe (380 by 385 pixels) when a
 * session ran out: no landscape, a compact form with even margins. After the
 * phone rules, because the iframe is narrower than 782px.
 */
body.login.interim-login { justify-content: flex-start; align-items: stretch; min-height: 0; padding: 14px 24px 8px; }
body.interim-login .pw-login-scene,
body.interim-login .pw-login-intro,
body.interim-login .pw-login-portal { display: none; }
.interim-login #login { width: auto; margin: 0; padding: 0; }
.interim-login.login .message,
.interim-login #login_error { margin: 0 0 12px; padding: 10px 14px; }
.interim-login.login .message p,
.interim-login #login_error p { margin: 0; line-height: 1.45; }
.interim-login.login form .input,
.interim-login.login input[type="text"],
.interim-login.login input[type="password"] { height: 44px; min-height: 44px; margin: 4px 0 10px; }
.interim-login.login label { line-height: 1.4; }
.interim-login .wp-pwd .button.wp-hide-pw { top: 4px; }
.interim-login.login .forgetmenot { min-height: 32px; margin: 0 0 8px; }
.interim-login.login #wp-submit { height: 48px; min-height: 48px; }
.interim-login.login .forgetmenot input[type="checkbox"] { width: 20px; height: 20px; }
.interim-login .pw-login-help { width: auto; margin: 10px 0 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
	.login * { transition: none; }
}
