/**
 * Showcase Login Styles
 *
 * Reskins wp-login.php to match the Showcase admin UI.
 */

/* ─── Page ─────────────────────────────────── */

body.login {
	background: #f4f5f7;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
	padding: 24px;
}

/* ─── Card ─────────────────────────────────── */

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

#loginform,
#lostpasswordform,
#resetpassform {
	background: #ffffff;
	border: 1px solid #e2e4e9;
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	margin-top: 0;
}

/* ─── Brand ────────────────────────────────── */

.showcase-login-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	margin-bottom: 28px;
	color: #2d6cdf;
}

.showcase-login-brand svg {
	flex-shrink: 0;
}

.showcase-login-brand__name {
	font-size: 22px;
	font-weight: 700;
	color: #1a1d23;
	letter-spacing: -0.02em;
}

.showcase-login-subtitle {
	text-align: center;
	font-size: 13px;
	color: #6b7080;
	line-height: 1.5;
	margin: -16px 0 20px;
}

/* ─── Labels ───────────────────────────────── */

#loginform label,
#lostpasswordform label,
#resetpassform label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #1a1d23;
	margin-bottom: 6px;
}

#loginform label[for="rememberme"],
#lostpasswordform label[for="rememberme"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 400;
	color: #6b7080;
}

/* ─── Inputs ───────────────────────────────── */

#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="text"],
#resetpassform input[type="password"] {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #e2e4e9;
	border-radius: 8px;
	background: #ffffff;
	color: #1a1d23;
	transition: border-color 150ms ease, box-shadow 150ms ease;
	box-sizing: border-box;
	margin: 0 0 16px;
	box-shadow: none;
	outline: none;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="text"]:focus,
#resetpassform input[type="password"]:focus {
	border-color: #2d6cdf;
	box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.12);
}

/* ─── Remember me ──────────────────────────── */

.forgetmenot {
	margin-bottom: 16px !important;
}

.forgetmenot input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #2d6cdf;
	margin: 0;
	vertical-align: middle;
}

/* ─── Submit button ────────────────────────── */

#wp-submit,
#resetpassform .wp-core-ui .button-primary {
	width: 100%;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	background: #2d6cdf;
	border: none;
	border-radius: 8px;
	color: #ffffff;
	cursor: pointer;
	transition: background 150ms ease;
	text-shadow: none;
	box-shadow: none;
	height: auto;
	line-height: 1.4;
}

#wp-submit:hover,
#wp-submit:focus,
#resetpassform .wp-core-ui .button-primary:hover {
	background: #245abf;
	box-shadow: none;
}

.submit {
	padding: 0 !important;
	margin: 0 !important;
}

/* ─── Messages & errors ────────────────────── */

#login_error,
.message,
.success {
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 20px;
	border-left: none;
	box-shadow: none;
}

#login_error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.message {
	background: #eef3fc;
	border: 1px solid #bdd4f7;
	color: #1e40af;
}

.success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

#login_error a {
	color: #b91c1c;
	font-weight: 500;
}

.message a,
.success a {
	color: #1e40af;
	font-weight: 500;
}

/* ─── Nav links (Lost password / Back to login) ── */

#nav,
#backtoblog {
	text-align: center;
	padding: 0;
	margin: 20px 0 0;
}

#nav a,
#backtoblog a {
	font-size: 13px;
	color: #6b7080;
	text-decoration: none;
	transition: color 150ms ease;
}

#nav a:hover,
#backtoblog a:hover {
	color: #2d6cdf;
}

/* Hide "Back to site" — removed by PHP but fallback */
#backtoblog {
	display: none;
}

/* ─── Password strength meter ──────────────── */

#pass-strength-result {
	border-radius: 6px;
	margin: -8px 0 16px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 500;
}

.pw-weak,
.pw-mediocre {
	background: #fef3cd !important;
	border-color: #f0c36d !important;
}

.pw-strong {
	background: #d1fae5 !important;
	border-color: #6ee7b7 !important;
}

/* Password toggle button */
.wp-pwd .button.wp-hide-pw {
	background: transparent;
	border: 1px solid #e2e4e9;
	border-radius: 8px;
	color: #6b7080;
	box-shadow: none;
	height: auto;
	padding: 8px 12px;
}

.wp-pwd .button.wp-hide-pw:hover {
	background: #f4f5f7;
	color: #1a1d23;
}

.wp-pwd {
	position: relative;
}

/* ─── Privacy policy link ──────────────────── */

.privacy-policy-page-link {
	text-align: center;
	margin-top: 16px;
}

.privacy-policy-page-link a {
	font-size: 12px;
	color: #9ca0ab;
	text-decoration: none;
}

.privacy-policy-page-link a:hover {
	color: #2d6cdf;
}

/* ─── Responsive ───────────────────────────── */

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

	#loginform,
	#lostpasswordform,
	#resetpassform {
		padding: 24px;
		border-radius: 10px;
	}

	.showcase-login-brand__name {
		font-size: 20px;
	}
}

/* ─── Overrides for WP defaults ────────────── */

#login h1 {
	margin: 0;
	padding: 0;
}

#login form p:not(.forgetmenot):not(.submit):not(.indicator-hint) {
	margin-bottom: 0;
}

#login form .input,
#login form input[type="text"],
#login form input[type="password"] {
	margin-bottom: 16px;
}

/* Hide WP logo heading entirely */
#login h1 {
	display: none;
}

/* Fix password reset form button */
.wp-core-ui .button-primary {
	background: #2d6cdf !important;
	border-color: #2d6cdf !important;
	color: #fff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	background: #245abf !important;
	border-color: #245abf !important;
}

/* Password hint text */
.resetpass-input .hint,
.indicator-hint {
	font-size: 12px;
	color: #6b7080;
	margin: -8px 0 12px;
}

/* Description text below generate password */
#resetpassform p.description {
	font-size: 12px;
	color: #6b7080;
	margin: 4px 0 16px;
}