/**
 * Exdesign — WordPress login / lost password / reset password styles.
 * Keeps the core wp-login layout; soft modern refinements only.
 * Accent colors come from --exd-accent / --exd-accent-dark (set inline from settings).
 */

body.login {
	--exd-accent: #7c7c7c;
	--exd-accent-dark: #656565;
	background: #f0f0f1;
	background-image:
		radial-gradient(ellipse 120% 80% at 50% -20%, #e8eef5 0%, transparent 55%),
		linear-gradient(180deg, #f6f7f7 0%, #f0f0f1 100%);
	min-height: 100%;
}

body.login #login {
	width: 100%;
	max-width: 360px;
	padding: 6% 0 0;
}

/* Logo link (size overridden inline when custom logo is set) */
body.login h1 a {
	background-size: contain !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	margin: 0 auto 28px !important;
	transition: opacity 0.15s ease;
}

body.login h1 a:hover,
body.login h1 a:focus {
	opacity: 0.85;
}

/* Form card */
body.login form {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
	padding: 28px 28px 24px;
	margin-top: 0;
	background: #fff;
}

body.login form .forgetmenot {
	margin-top: 12px;
}

body.login label {
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	margin-bottom: 4px;
}

body.login form .input,
body.login form input[type="text"],
body.login form input[type="password"],
body.login input[type="text"],
body.login input[type="password"] {
	font-size: 15px;
	line-height: 1.4;
	padding: 10px 12px;
	margin: 4px 0 16px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.login form .input:focus,
body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
	border-color: var(--exd-accent);
	box-shadow: 0 0 0 1px var(--exd-accent);
	outline: 2px solid transparent;
}

/* Primary button — accent from General settings */
body.login .button-primary,
body.login .wp-core-ui .button-primary {
	background: var(--exd-accent);
	border-color: var(--exd-accent);
	border-radius: 4px;
	color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 2.15;
	min-height: 36px;
	padding: 0 16px;
	text-shadow: none;
	box-shadow: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus,
body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus {
	background: var(--exd-accent-dark);
	border-color: var(--exd-accent-dark);
	color: #fff;
	box-shadow: none;
}

body.login .button-primary:active,
body.login .wp-core-ui .button-primary:active {
	background: var(--exd-accent-dark);
	border-color: var(--exd-accent-dark);
}

body.login .button-primary:focus,
body.login .wp-core-ui .button-primary:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--exd-accent);
}

body.login .submit {
	margin: 8px 0 0;
	padding: 0;
}

/* Messages / notices (login, lost password, reset) */
body.login #login_error,
body.login .message,
body.login .success {
	border-radius: 6px;
	border-left-width: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 12px 14px;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.5;
}

body.login .message {
	border-left-color: #72aee6;
	background: #f0f6fc;
}

body.login .success {
	border-left-color: #00a32a;
	background: #edfaef;
}

body.login #login_error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

/* Nav links under the form */
body.login #nav,
body.login #backtoblog {
	padding: 0 4px;
	font-size: 13px;
}

body.login #nav {
	margin: 20px 0 0;
	text-align: center;
}

body.login #backtoblog {
	margin: 12px 0 0;
	text-align: center;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: #50575e;
	text-decoration: none;
	transition: color 0.15s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover,
body.login #nav a:focus,
body.login #backtoblog a:focus,
body.login .privacy-policy-page-link a:focus {
	color: var(--exd-accent);
	text-decoration: underline;
}

body.login .privacy-policy-page-link {
	text-align: center;
	margin: 16px 0 0;
}

/* Password strength / reveal (reset + set new password screens) */
body.login .pw-weak {
	margin-bottom: 12px;
}

body.login .wp-pwd {
	position: relative;
}

body.login .button.wp-hide-pw {
	border-radius: 4px;
	color: #50575e;
}

body.login .button.wp-hide-pw:hover,
body.login .button.wp-hide-pw:focus {
	color: var(--exd-accent);
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

body.login #pass-strength-result {
	border-radius: 4px;
	margin: -8px 0 12px;
	font-weight: 500;
}

body.login .indicator-hint {
	color: #646970;
	font-size: 12px;
	line-height: 1.5;
	margin-bottom: 12px;
}

/* Language switcher (if present) */
body.login .language-switcher {
	margin-top: 24px;
}

body.login .language-switcher select {
	border-radius: 4px;
	border-color: #8c8f94;
	min-height: 36px;
}

body.login .language-switcher .button {
	border-radius: 4px;
	min-height: 36px;
}

@media screen and (max-width: 782px) {
	body.login #login {
		padding: 5% 16px 40px;
		box-sizing: border-box;
	}

	body.login form {
		padding: 24px 20px 20px;
	}
}
