/**
 * Modern Login Screen Stylesheet for WordPress
 * Admin Login Plugin - Shopify Polaris Theme
 */

body.login {
	font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	background-color: #f6f6f7;
	color: #202223;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
	padding: 20px 0;
	box-sizing: border-box;
}

/* Container */
#login {
	width: 380px;
	padding: 0;
	margin: auto;
	box-sizing: border-box;
}

/* Header & Logo */
#login h1 {
	text-align: center;
	margin-bottom: 24px;
}

#login h1 a {
	display: inline-block;
	text-indent: -9999px;
	outline: none;
	transition: opacity 0.2s ease;
}

#login h1 a:hover {
	opacity: 0.9;
}

/* Login Form Card */
#loginform,
#lostpasswordform,
#registerform,
#resetpassform {
	background-color: #ffffff;
	border: 1px solid #e1e3e5;
	border-radius: 12px;
	box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 rgba(63, 63, 68, 0.15);
	padding: 28px 24px;
	box-sizing: border-box;
	margin: 0 0 20px 0;
}

/* Labels */
#loginform label,
#lostpasswordform label,
#registerform label,
#resetpassform label {
	font-size: 13px;
	font-weight: 600;
	color: #202223;
	margin-bottom: 6px;
	display: block;
}

/* Input Fields */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"],
#registerform input[type="text"],
#registerform input[type="email"] {
	font-family: inherit;
	font-size: 14px;
	color: #202223;
	background-color: #ffffff;
	border: 1px solid #8c9196;
	border-radius: 8px;
	padding: 9px 12px;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	outline: none;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="email"]:focus {
	border-color: #005bd3;
	box-shadow: 0 0 0 1px #005bd3;
}

/* Remember Me Checkbox */
#loginform .forgetmenot {
	float: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

#loginform .forgetmenot label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 400;
	color: #6d7175;
	margin: 0;
	cursor: pointer;
}

#loginform input[type="checkbox"] {
	border-radius: 4px;
	border: 1px solid #8c9196;
	cursor: pointer;
	accent-color: #008060;
}

/* Submit Button */
#loginform .submit,
#lostpasswordform .submit,
#registerform .submit {
	float: none;
	margin: 0;
}

#loginform .button-primary,
#loginform input[type="submit"],
#lostpasswordform input[type="submit"],
#registerform input[type="submit"] {
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 12px 20px;
	background-color: #008060;
	border: 1px solid #006e52;
	border-radius: 8px;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
	transition: all 0.15s ease-in-out;
	outline: none;
	text-shadow: none;
	display: block;
	float: none;
}

#loginform .button-primary:hover,
#loginform input[type="submit"]:hover {
	background-color: #006e52;
	border-color: #005e46;
}

/* Secondary Links */
#nav,
#backtoblog {
	text-align: center;
	margin: 12px 0 0 0;
	padding: 0;
	font-size: 13px;
}

#nav a,
#backtoblog a {
	color: #6d7175;
	text-decoration: none;
	transition: color 0.15s ease;
}

#nav a:hover,
#backtoblog a:hover {
	color: #202223;
	text-decoration: underline;
}

/* Notices & Error Messages */
.login .message,
.login #login_error {
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 20px;
	box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 rgba(63, 63, 68, 0.15);
	border: none;
	box-sizing: border-box;
}

.login .message {
	background-color: #f1f8f5;
	color: #005e46;
	border-left: 4px solid #008060;
}

.login #login_error {
	background-color: #fff4f4;
	color: #d72c0d;
	border-left: 4px solid #d72c0d;
}

/* Language Switcher */
.language-switcher {
	margin-top: 16px;
	text-align: center;
}

.language-switcher select {
	border-radius: 8px;
	border: 1px solid #8c9196;
	padding: 6px 12px;
	font-size: 12px;
	color: #6d7175;
	background: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
	#login {
		width: 90% !important;
		max-width: 360px;
	}

	#loginform {
		padding: 20px 16px;
	}
}

