:root {
	--rauvea-ink: #1c1d19;
	--rauvea-paper: #f4f1e9;
	--rauvea-paper-2: #ebe6da;
	--rauvea-line: rgba(28, 29, 25, 0.16);
	--rauvea-muted: #6f6c64;
	--rauvea-login-logo: none;
}

html,
body.login {
	min-height: 100%;
}

body.login {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 32px 20px;
	background:
		radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.75) 0, rgba(255, 255, 255, 0) 32%),
		linear-gradient(135deg, var(--rauvea-paper) 0%, var(--rauvea-paper-2) 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--rauvea-ink);
}

body.login::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(28, 29, 25, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(28, 29, 25, 0.025) 1px, transparent 1px);
	background-size: 42px 42px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 82%);
}

#login {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

#login h1 {
	margin: 0 0 18px;
}

#login h1 a {
	width: 104px;
	height: 104px;
	margin: 0 auto;
	padding: 0;
	border-radius: 50%;
	background-image: var(--rauvea-login-logo);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 14px 34px rgba(28, 29, 25, 0.14);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#login h1 a:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 42px rgba(28, 29, 25, 0.19);
}

.rau-login-intro {
	margin: 0 0 26px;
	text-align: center;
	color: var(--rauvea-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
	margin-top: 0;
	padding: 34px;
	border: 1px solid rgba(28, 29, 25, 0.11);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.76);
	box-shadow: 0 24px 70px rgba(28, 29, 25, 0.1);
	backdrop-filter: blur(14px);
}

body.login label {
	color: var(--rauvea-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.login .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	min-height: 50px;
	margin-top: 8px;
	padding: 10px 13px;
	border: 1px solid var(--rauvea-line);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: none;
	color: var(--rauvea-ink);
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	border-color: var(--rauvea-ink);
	background: #fff;
	box-shadow: 0 0 0 1px var(--rauvea-ink);
	outline: none;
}

body.login .user-pass-wrap .wp-pwd {
	position: relative;
	margin-top: 8px;
}

body.login .user-pass-wrap .wp-pwd .input {
	margin-top: 0;
	padding-right: 50px;
}

body.login .button.wp-hide-pw {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	min-width: 50px;
	min-height: 50px;
	margin: auto 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--rauvea-ink);
	transform: none;
}

body.login .button.wp-hide-pw:hover,
body.login .button.wp-hide-pw:focus,
body.login .button.wp-hide-pw:active {
	top: 0;
	bottom: 0;
	margin: auto 0;
	background: transparent;
	box-shadow: none;
	color: var(--rauvea-ink);
	transform: none;
}

body.login .button.wp-hide-pw .dashicons {
	position: relative;
	top: -2px;
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 20px;
	transform: none;
}

body.login .button-primary {
	min-height: 46px;
	padding: 0 24px;
	border: 1px solid var(--rauvea-ink);
	border-radius: 0;
	background: var(--rauvea-ink);
	box-shadow: none;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-shadow: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	border-color: var(--rauvea-ink);
	background: transparent;
	color: var(--rauvea-ink);
	transform: translateY(-1px);
}

body.login #loginform p.submit {
	margin: 0;
}

body.login #loginform::after {
	content: "";
	display: table;
	clear: both;
}

body.login .forgetmenot label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.login input[type="checkbox"] {
	border-color: rgba(28, 29, 25, 0.35);
	border-radius: 0;
	box-shadow: none;
}

body.login input[type="checkbox"]:checked::before {
	filter: grayscale(1) brightness(0.25);
}

body.login #nav,
body.login #backtoblog {
	padding: 0;
	text-align: center;
}

body.login #nav {
	margin-top: 22px;
}

body.login #backtoblog {
	margin-top: 12px;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: var(--rauvea-muted);
	font-size: 12px;
	text-decoration: none;
	transition: color 0.2s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
	color: var(--rauvea-ink);
}

body.login .message,
body.login .notice,
body.login #login_error {
	margin-bottom: 20px;
	border: 0;
	border-left: 3px solid var(--rauvea-ink);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: none;
	color: var(--rauvea-ink);
}

body.login .language-switcher {
	position: relative;
	z-index: 1;
	width: min(100%, 430px);
	margin: 24px auto 0;
	padding: 0;
	text-align: center;
	box-sizing: border-box;
}

body.login .language-switcher form {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
}

body.login .language-switcher .dashicons {
	color: var(--rauvea-muted);
}

body.login .language-switcher select {
	min-width: 150px;
	height: 38px;
	border: 1px solid var(--rauvea-line);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.65);
	box-shadow: none;
	color: var(--rauvea-ink);
	font-size: 12px;
}

body.login .language-switcher .button {
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--rauvea-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--rauvea-ink);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.login .language-switcher .button:hover,
body.login .language-switcher .button:focus {
	border-color: var(--rauvea-ink);
	background: var(--rauvea-ink);
	color: #fff;
}

@media (max-width: 520px) {
	body.login {
		padding: 24px 16px;
		align-items: flex-start;
	}

	#login {
		padding-top: 14px;
	}

	#login h1 a {
		width: 88px;
		height: 88px;
	}

	body.login #loginform,
	body.login #lostpasswordform,
	body.login #registerform {
		padding: 26px 22px;
	}

	body.login .language-switcher form {
		flex-wrap: wrap;
	}
}
