/*
 * Login, registration and "lost password" (wp-login.php) in the Naloksonkurs style.
 * Loaded only on wp-login.php by functions.php.
 */

@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/work-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/work-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body.login {
	font-family: "Work Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	color: #2b2b2b;
	background: linear-gradient(180deg, #eceef5 0%, #f6f7fb 100%);
	min-height: 100vh;
}

body.login::before {
	/* Colour stripe at the top, as on the certificate. */
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, #9dc0d4 0 62%, #f05a28 62% 88%, #f6c915 88% 100%);
}

.login #login {
	width: 380px;
	max-width: calc(100% - 32px);
	padding: 6vh 0 40px;
}

/* Logo */
.login h1 a {
	background-size: contain;
	background-position: center;
	width: 120px;
	height: 76px;
	margin-bottom: 20px;
}

.login .nk-login-title {
	text-align: center;
	color: #262c66;
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 18px;
}

.login .nk-login-intro {
	text-align: center;
	color: #4a4f6a;
	font-size: 15px;
	line-height: 1.5;
	margin: -8px 0 20px;
}

/* The form card */
.login form {
	background: #fff;
	border: 1px solid #e2e5ef;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(38, 44, 102, 0.08);
	padding: 28px 28px 24px;
	margin-top: 0;
}

.login label {
	color: #262c66;
	font-size: 15px;
	font-weight: 600;
}

.login form .input,
.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
	font-family: inherit;
	font-size: 16px;
	padding: 8px 12px;
	min-height: 44px;
	border: 1px solid #c8cdde;
	border-radius: 8px;
	box-shadow: none;
	background: #fff;
	margin-top: 6px;
}

.login form .input:focus,
.login input:focus {
	border-color: #262c66;
	box-shadow: 0 0 0 3px #f6c915;
	outline: none;
}

.login .button.wp-hide-pw {
	min-height: 44px;
	margin-top: 6px;
	color: #262c66;
}

.login .button.wp-hide-pw:focus {
	border-color: transparent;
	box-shadow: 0 0 0 3px #f6c915;
}

.login .forgetmenot label {
	font-weight: 400;
	font-size: 14px;
}

.login input[type="checkbox"]:checked::before {
	filter: hue-rotate(0deg);
}

.login input[type="checkbox"]:focus {
	box-shadow: 0 0 0 3px #f6c915;
	border-color: #262c66;
}

/* Primary button */
.login .button-primary,
.wp-core-ui.login .button-primary {
	background: #b83c12;
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	min-height: 44px;
	padding: 0 24px;
	box-shadow: 0 6px 16px rgba(184, 60, 18, 0.25);
	text-shadow: none;
	transition: background-color 0.15s ease;
}

.login .button-primary:hover,
.login .button-primary:focus,
.wp-core-ui.login .button-primary:hover,
.wp-core-ui.login .button-primary:focus {
	background: #9a300c;
	color: #fff;
	box-shadow: 0 6px 16px rgba(184, 60, 18, 0.3);
}

.login .button-primary:focus-visible {
	outline: 3px solid #f6c915;
	outline-offset: 2px;
}

.login .submit {
	margin-top: 8px;
}

/* Messages */
.login .message,
.login .notice,
.login .success,
.login #login_error {
	border: 0;
	border-left: 5px solid #2771bb;
	border-radius: 10px;
	box-shadow: none;
	background: #fff;
	padding: 12px 16px;
	font-size: 14px;
}

.login .success {
	border-left-color: #2e7d4f;
}

.login #login_error,
.login .notice-error {
	border-left-color: #b83c12;
}

/* Links under the form */
.login #nav,
.login #backtoblog {
	text-align: center;
	padding: 0;
	margin-top: 18px;
	font-size: 14px;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
	color: #2771bb;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.login #nav a:hover,
.login #backtoblog a:hover {
	color: #262c66;
}

.login .privacy-policy-page-link {
	margin-top: 24px;
	font-size: 13px;
}

.login .nk-login-footer {
	text-align: center;
	color: #4a4f6a;
	font-size: 13px;
	line-height: 1.5;
	margin: 24px auto 0;
	max-width: 380px;
	padding: 0 16px;
}

/* Language switcher is not needed on a Norwegian-only site */
.login .language-switcher {
	display: none;
}

#registerform #reg_passmail {
	font-size: 14px;
	color: #4a4f6a;
}

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