/*
 * LoginGlow — Login Page Base Styles
 * Loaded only on wp-login.php via login_enqueue_scripts.
 * Provides structural improvements; colours are applied via inline CSS.
 */

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

html,
body.login {
	height: 100%;
	min-height: 100%;
	background-attachment: fixed !important;
}

body.login {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

/* ── Login container ─────────────────────────────────────────────────────── */

#login {
	width: 100%;
	max-width: 360px;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ── Logo ────────────────────────────────────────────────────────────────── */

.login h1 {
	margin-bottom: 20px;
}

.login h1 a {
	background-size: contain !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	width: 100% !important;
	max-width: 200px !important;
	margin: 0 auto;
	display: block;
}

/* ── Form card ───────────────────────────────────────────────────────────── */

#loginform,
#lostpasswordform,
#registerform {
	padding: 28px 28px 24px !important;
	margin: 0 0 20px !important;
	border: none !important;
	transition: background .3s, box-shadow .3s, border-radius .3s;
}

/* ── Input fields ────────────────────────────────────────────────────────── */

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	border-radius: 4px; /* fixed radius — does NOT inherit form card border-radius */
	padding: 8px 12px;
	font-size: 15px;
	height: 40px;
	border: 1px solid #dcdcde;
	transition: border-color .2s;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

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

.login label {
	font-size: 13px;
	font-weight: 500;
}

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

.login .button-primary,
.wp-core-ui .button-primary {
	width: 100%;
	height: 42px;
	font-size: 15px !important;
	font-weight: 600 !important;
	border-radius: 4px !important; /* fixed radius — independent of form card */
	cursor: pointer;
	transition: background .2s, border-color .2s !important;
	box-sizing: border-box;
	letter-spacing: .02em;
}

/* ── Checkbox (remember me) ──────────────────────────────────────────────── */

.login .forgetmenot {
	float: left;
	margin-top: 8px;
}

.login .submit {
	float: right;
}

#loginform .forgetmenot input[type="checkbox"] {
	accent-color: currentColor;
}

/* ── Navigation links ────────────────────────────────────────────────────── */

#nav,
#backtoblog {
	text-align: center;
}

#nav a,
#backtoblog a {
	font-size: 13px;
	text-decoration: none;
}

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

/* ── Shake animation (wrong password) ───────────────────────────────────── */

.login #login_error {
	border-left: 4px solid #d63638;
	border-radius: 4px;
	font-size: 13px;
}

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

.login .privacy-policy-page-link {
	text-align: center;
	font-size: 12px;
}

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

@media screen and (max-width: 400px) {
	#login {
		padding: 0 12px;
	}

	#loginform,
	#lostpasswordform,
	#registerform {
		padding: 20px 16px 18px !important;
	}
}
