/* BM MainWP Lockdown - Custom Login Page */

/*
 * Centering: body.login contains #login, .language-switcher,
 * h1.screen-reader-text (position:absolute), scripts, and a11y divs.
 * flex-direction: column stacks #login + .language-switcher vertically.
 * The screen-reader h1, scripts, and a11y divs are all position:absolute
 * or have no rendered box, so they don't affect the flex layout.
 */
body.login {
	background: #1e1e2f;
	background: linear-gradient(135deg, #1e1e2f 0%, #2d2d44 100%);
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#login {
	padding: 0;
	margin: 0;
	max-width: 360px;
	width: 100%;
}

/* WP Login logo link (inside <h1 role="presentation" class="wp-login-logo">) */
.login h1.wp-login-logo a,
.login h1 a {
	background-image: url('../images/logo.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 280px;
	height: 80px;
	margin-bottom: 24px;
}

/* Form container */
.login form#loginform,
.login form {
	background: #ffffff;
	border: none;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	padding: 28px 24px 36px;
	margin-top: 0;
}

/* Labels */
.login label,
.login form .forgetmenot label {
	color: #4a4a5a;
	font-size: 13px;
	font-weight: 500;
}

/* Input fields */
.login form .input,
.login form input[type="text"],
.login form input[type="password"] {
	background: #f5f5f8;
	border: 1px solid #e0e0e8;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.5;
	color: #2d2d44;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="password"]:focus {
	border-color: #7fb100;
	box-shadow: 0 0 0 2px rgba(127, 177, 0, 0.2);
	outline: none;
	background: #ffffff;
}

/* Password toggle visibility button */
.login .wp-pwd .button.wp-hide-pw {
	color: #7fb100;
}

/* Caps lock warning */
.login .wp-pwd .caps-warning {
	color: #4a4a5a;
}

/* Submit button */
.login .button-primary,
.login input#wp-submit {
	background: #7fb100;
	border: none;
	border-radius: 6px;
	box-shadow: none;
	font-size: 15px;
	font-weight: 600;
	height: auto;
	line-height: 1.5;
	padding: 12px 20px;
	text-shadow: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
	margin-top: 12px;
}

.login .button-primary:hover,
.login .button-primary:focus,
.login input#wp-submit:hover,
.login input#wp-submit:focus {
	background: #6e9a00;
	box-shadow: 0 4px 12px rgba(127, 177, 0, 0.35);
	border: none;
}

.login .button-primary:active,
.login input#wp-submit:active {
	background: #5d8300;
}

/* "Remember me" checkbox */
.login form .forgetmenot {
	margin-top: 4px;
}

/* Links below form (#nav contains "Passwort vergessen?") */
.login #nav,
.login #backtoblog {
	text-align: center;
}

.login #nav a,
.login #backtoblog a {
	color: #8888a0;
	transition: color 0.2s ease;
	text-decoration: none;
}

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

/* Hide "Back to blog" since frontend is locked */
.login #backtoblog {
	display: none;
}

/* Login message box (e.g. "Du hast dich erfolgreich abgemeldet.") */
.login #login-message,
.login .message,
.login .success {
	border-left-color: #7fb100;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
}

/* Error box */
#login_error {
	border-left-color: #e74c3c;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
}

/* Privacy policy link */
.login .privacy-policy-page-link {
	text-align: center;
}

.login .privacy-policy-page-link a {
	color: #8888a0;
}

.login .privacy-policy-page-link a:hover {
	color: #ffffff;
}

/* Language switcher (below #login, flex child of body) */
body.login .language-switcher {
	margin-top: 20px;
	max-width: 360px;
	width: 100%;
	text-align: center;
}

.language-switcher label {
	color: #8888a0 !important;
}

.language-switcher select {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #c0c0d0;
	border-radius: 6px;
}

.language-switcher .button {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: #c0c0d0;
	border-radius: 6px;
}
