@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Overpass:wght@300;400;500&display=swap");

/* ── Variables ─────────────────────────────────────────── */
:root {
	--ens-navy: #0d1933;
	--ens-navy-card: #111e3a;
	--ens-teal: #00a3b5;
	--ens-teal-dim: rgba(0, 163, 181, 0.18);
	--ens-teal-dark: #007d8c;
	--ens-text: #dce8f5;
	--ens-text-muted: #6b84a8;
	--ens-border: rgba(255, 255, 255, 0.07);
	--ens-input-bg: rgba(255, 255, 255, 0.04);
}

/* ── Page ───────────────────────────────────────────────── */
body.login {
	background: linear-gradient(113deg, #0d1933 45%, #00a3b5 300%);
	font-family: "Overpass", sans-serif;
	min-height: 100vh;
}

/* ── Container ──────────────────────────────────────────── */
body.login div#login {
	padding: 56px 0 40px;
	width: 500px;
	max-width: calc(100vw - 32px);
}

/* ── Logo ───────────────────────────────────────────────── */
body.login h1 a {
	width: 220px;
	height: 56px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0 auto 32px;
	display: block;
	opacity: 0.95;
}

/* ── Welcome message ────────────────────────────────────── */
body.login .message {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 10px 16px;
	margin-bottom: 20px;
	box-shadow: none;
	color: var(--ens-text);
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.65;
	text-align: center;
}

/* ── Form card ──────────────────────────────────────────── */
body.login form {
	background: #ffffff;
	border: none;
	border-radius: 4px;
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.1),
		0 16px 48px rgba(0, 0, 0, 0.25);
	padding: 36px 36px 30px;
}

/* ── Labels ─────────────────────────────────────────────── */
body.login form label {
	font-family: "Poppins", sans-serif;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6b84a8;
	margin-bottom: 6px;
	display: block;
}

/* ── Inputs ─────────────────────────────────────────────── */
body.login form input[type="text"],
body.login form input[type="password"],
body.login form input[type="email"] {
	background: #f4f6f9;
	border: 1px solid #dde3ed;
	border-radius: 3px;
	color: #172b4d;
	font-family: "Overpass", sans-serif;
	font-size: 0.95rem;
	font-weight: 300;
	padding: 11px 14px;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

body.login form input[type="text"]:focus,
body.login form input[type="password"]:focus,
body.login form input[type="email"]:focus {
	border-color: var(--ens-teal);
	box-shadow: 0 0 0 3px var(--ens-teal-dim);
	background: #ffffff;
	outline: none;
	color: #172b4d;
}

body.login form input[type="text"]::placeholder,
body.login form input[type="password"]::placeholder {
	color: #aab8cc;
}

/* ── Remember me ────────────────────────────────────────── */
body.login form .forgetmenot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

body.login form .forgetmenot label {
	color: #6b84a8;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	margin-bottom: 0;
}

body.login form input[type="checkbox"] {
	accent-color: var(--ens-teal);
	width: 14px;
	height: 14px;
}

/* ── Submit button ──────────────────────────────────────── */
body.login #wp-submit {
	background: var(--ens-teal);
	border: none;
	border-radius: 0px 20px 0px 0px;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 1rem 3rem 1rem 3rem;
	margin-top: 12px;
	width: 100%;
	cursor: pointer;
	transition:
		background 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.1s ease;
	box-shadow: 0 4px 20px rgba(0, 163, 181, 0.28);
	-webkit-appearance: none;
	appearance: none;
}

body.login #wp-submit:hover {
	background: var(--ens-teal-dark);
	box-shadow: 0 6px 24px rgba(0, 163, 181, 0.4);
	transform: translateY(-1px);
}

body.login #wp-submit:active {
	transform: translateY(0);
	box-shadow: 0 2px 12px rgba(0, 163, 181, 0.3);
}

body.login #wp-submit:focus {
	outline: none;
	box-shadow: 0 0 0 3px var(--ens-teal-dim);
}

/* ── Nav links ──────────────────────────────────────────── */
body.login #nav,
body.login #backtoblog {
	text-align: center;
	margin-top: 10px;
}

body.login #nav a,
body.login #backtoblog a {
	display: inline-block;
	color: rgba(255, 255, 255, 0.75);
	font-family: "Poppins", sans-serif;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 9px 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.05);
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	text-decoration: none;
}

body.login #nav {
	display: flex;
	gap: 8px;
	justify-content: center;
	font-size: 0;
}

/* ── Error / notice ─────────────────────────────────────── */
body.login .notice,
body.login .notice-error,
body.login .error {
	background: rgba(220, 53, 69, 0.08);
	border: none;
	border-left: 2px solid rgba(220, 53, 69, 0.7);
	border-radius: 0;
	box-shadow: none;
	color: #ff8898;
	font-family: "Overpass", sans-serif;
	font-size: 0.85rem;
	font-weight: 300;
	padding: 12px 16px;
	margin-bottom: 16px;
}

body.login .notice a,
body.login .error a {
	color: #ff8898;
}

/* ── Wordfence 2FA page ──────────────────────────────────── */
body.login .wfls-prompt {
	color: var(--ens-text);
	font-family: "Overpass", sans-serif;
}

/* ── Lost password / register pages ────────────────────── */
body.login .login-action-lostpassword form,
body.login .login-action-register form {
	background: var(--ens-navy-card);
}
