/**
 * Branded login screen.
 *
 * WordPress serves wp-login.php outside the theme, so it needs its own
 * stylesheet. This keeps the design language: the mountain photo, the blue
 * mark, the same inputs and button as the contact form.
 */

body.login {
	background: #0a1f3c url('assets/img/mountains.webp') no-repeat center center;
	background-size: cover;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	box-sizing: border-box;
}

/* deepen the photo so the white card has contrast */
body.login::before {
	content: '';
	position: fixed;
	inset: 0;
	background: linear-gradient(160deg, rgba(6, 22, 44, .93) 0%, rgba(10, 40, 85, .78) 100%);
	z-index: 0;
}

#login {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 380px;
	padding: 0;
	margin: 0 auto;
}

/* the logo: our mark, not the WordPress logo */
#login h1 a {
	background-image: none;
	width: auto;
	height: auto;
	text-indent: 0;
	overflow: visible;
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -.03em;
	color: #ffffff;
	margin: 0 0 22px;
	padding: 0;
	line-height: 1;
	text-decoration: none;
}

#login h1 a::before {
	content: 'P';
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1b5cf6, #3f7bff);
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

/* the card */
.login form {
	background: #ffffff;
	border: 1px solid #e4ebf7;
	border-radius: 16px;
	padding: 28px 26px 24px;
	box-shadow: 0 34px 70px -34px rgba(2, 12, 28, .75);
	margin-top: 0;
	font-weight: 400;
	overflow: visible;
}

.login label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #0b1b33;
	margin-bottom: 6px;
}

.login form .input,
.login input[type='text'],
.login input[type='password'],
.login input[type='email'] {
	background: #f4f8ff;
	border: 1px solid #e4ebf7;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 15px;
	line-height: 1.5;
	color: #0b1b33;
	box-shadow: none;
	outline: none;
	font-family: inherit;
}

.login form .input:focus,
.login input[type='text']:focus,
.login input[type='password']:focus {
	background: #ffffff;
	border-color: #1b5cf6;
	box-shadow: 0 0 0 3px rgba(27, 92, 246, .14);
}

.login form .forgetmenot label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 13.5px;
	font-weight: 500;
	color: #5b6b84;
}

.wp-core-ui .button-primary {
	background: #1b5cf6;
	border: 1px solid #1b5cf6;
	border-radius: 10px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	height: auto;
	padding: 11px 18px;
	line-height: 1.4;
	text-shadow: none;
	box-shadow: 0 14px 28px -16px rgba(27, 92, 246, .85);
	transition: background .18s ease;
	float: none;
	width: 100%;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	background: #1449d6;
	border-color: #1449d6;
	box-shadow: 0 14px 28px -16px rgba(27, 92, 246, .95);
}

/* links under the card */
.login #nav,
.login #backtoblog {
	font-size: 13.5px;
	padding: 0;
	margin: 16px 0 0;
	text-align: center;
}

.login #nav a,
.login #backtoblog a {
	color: rgba(255, 255, 255, .82) !important;
	text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover {
	color: #ffffff !important;
	text-decoration: underline;
}

/* notices */
.login .message,
.login .notice,
.login .success {
	background: #ffffff;
	border: 0;
	border-left: 3px solid #1b5cf6;
	border-radius: 10px;
	box-shadow: 0 20px 40px -28px rgba(2, 12, 28, .6);
	font-size: 14px;
	color: #0b1b33;
	padding: 13px 16px;
}

.login .message {
	border-left-color: #1b5cf6;
}

#login_error {
	border-left: 3px solid #b02a2a;
	background: #fff5f5;
	border-radius: 10px;
	color: #7d2222;
}

.login .privacy-policy-page-link {
	margin-top: 6px;
}

/* language switcher looks stray on a one-language site */
#language-switcher {
	display: none;
}

.login .privacy-policy-page-link a {
	color: rgba(255, 255, 255, .7) !important;
}

/* the WordPress footer credit is noise */
.login .wp-login-info,
#login .privacy-policy-page-link + .privacy-policy-page-link {
	border: 0;
}

@media (max-width: 480px) {
	#login {
		max-width: 100%;
	}
	.login form {
		padding: 22px 20px 20px;
	}
}
