/* Fiction Sisters — Custom Login Page
 * Matches the React AccountPage aesthetic: warm tones, literary feel,
 * Playfair Display headings, Lora body text, soft card layout.
 */

/* ---------- Body & Background ---------- */
body.login {
	background: linear-gradient(160deg, hsl(30, 15%, 8%) 0%, hsl(25, 20%, 12%) 40%, hsl(20, 18%, 10%) 100%);
	font-family: 'Lora', 'Georgia', serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

/* ---------- Logo Area ---------- */
#login h1 a,
.login h1 a {
	background-image: none;
	width: auto;
	height: auto;
	font-size: 0;
	margin: 0 auto 1.5rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#login h1 a::after,
.login h1 a::after {
	content: 'Unsaid Fiction';
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	font-weight: 600;
	color: hsl(36, 60%, 72%);
	letter-spacing: 0.04em;
	display: block;
}

/* ---------- Tagline (injected via login_message) ---------- */
.login-tagline {
	text-align: center;
	margin: 0 auto 1.5rem;
	padding: 0;
}

.login-tagline .eyebrow {
	display: block;
	font-family: 'Lora', serif;
	font-style: italic;
	font-size: 0.85rem;
	color: hsl(36, 30%, 55%);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 0.3rem;
}

.login-tagline .subtitle {
	display: block;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.05rem;
	color: hsl(30, 15%, 60%);
	font-style: italic;
}

/* ---------- Login Form Card ---------- */
.login form,
#loginform {
	background: hsl(25, 12%, 14%);
	border: 1px solid hsl(36, 20%, 22%);
	border-radius: 12px;
	padding: 2rem 2.25rem;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.3),
		0 0 0 1px hsl(36, 15%, 18%);
	max-width: 380px;
	width: 100%;
}

/* ---------- Labels ---------- */
.login form .forgetmenot,
.login form label {
	font-family: 'Lora', serif;
	font-size: 0.82rem;
	color: hsl(30, 15%, 60%);
	letter-spacing: 0.03em;
}

/* ---------- Input Fields ---------- */
.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"] {
	background: hsl(25, 10%, 10%);
	border: 1px solid hsl(36, 15%, 25%);
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
	font-family: 'Lora', serif;
	font-size: 0.9rem;
	color: hsl(36, 20%, 85%);
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login form input[type="text"]:focus,
.login form input[type="password"]:focus,
.login form input[type="email"]:focus {
	border-color: hsl(36, 50%, 50%);
	box-shadow: 0 0 0 2px hsla(36, 50%, 50%, 0.15);
	outline: none;
	background: hsl(25, 10%, 10%);
	color: hsl(36, 20%, 90%);
}

/* ---------- Submit Button ---------- */
.login form .submit input[type="submit"],
#wp-submit {
	background: linear-gradient(135deg, hsl(36, 45%, 42%) 0%, hsl(30, 40%, 35%) 100%);
	border: 1px solid hsl(36, 30%, 30%);
	border-radius: 8px;
	padding: 0.75rem 1.5rem;
	font-family: 'Playfair Display', serif;
	font-size: 0.9rem;
	font-weight: 500;
	color: hsl(36, 80%, 95%);
	letter-spacing: 0.06em;
	cursor: pointer;
	width: 100%;
	transition: all 0.2s ease;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	margin-top: 0.5rem;
}

.login form .submit input[type="submit"]:hover,
#wp-submit:hover {
	background: linear-gradient(135deg, hsl(36, 50%, 48%) 0%, hsl(30, 45%, 40%) 100%);
	box-shadow: 0 4px 16px rgba(180, 140, 60, 0.2);
	transform: translateY(-1px);
}

.login form .submit input[type="submit"]:active,
#wp-submit:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Remember Me ---------- */
.login .forgetmenot label {
	color: hsl(30, 15%, 55%);
}

.login .forgetmenot input[type="checkbox"] {
	border: 1px solid hsl(36, 15%, 30%);
	border-radius: 3px;
	background: hsl(25, 10%, 10%);
}

/* ---------- Links (Lost Password, Back to site) ---------- */
#login #nav a,
#login #backtoblog a,
.login #nav a,
.login #backtoblog a {
	font-family: 'Lora', serif;
	font-size: 0.8rem;
	color: hsl(36, 40%, 55%);
	text-decoration: none;
	transition: color 0.2s ease;
}

#login #nav a:hover,
#login #backtoblog a:hover,
.login #nav a:hover,
.login #backtoblog a:hover {
	color: hsl(36, 55%, 70%);
	text-decoration: underline;
}

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

/* ---------- Messages & Errors ---------- */
.login .message,
.login .success {
	background: hsl(25, 12%, 16%);
	border-left: 4px solid hsl(36, 50%, 50%);
	border-radius: 6px;
	color: hsl(30, 15%, 70%);
	font-family: 'Lora', serif;
	font-size: 0.85rem;
	padding: 0.75rem 1rem;
}

#login_error,
.login #login_error {
	background: hsl(0, 20%, 15%);
	border-left: 4px solid hsl(0, 50%, 50%);
	border-radius: 6px;
	color: hsl(0, 20%, 75%);
	font-family: 'Lora', serif;
	font-size: 0.85rem;
	padding: 0.75rem 1rem;
}

/* ---------- Privacy policy link ---------- */
.login .privacy-policy-page-link a {
	color: hsl(30, 15%, 45%);
	font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.login form,
	#loginform {
		padding: 1.5rem;
		margin: 0 1rem;
	}

	#login h1 a::after,
	.login h1 a::after {
		font-size: 1.6rem;
	}
}

/* ---------- Powered by WP (hide) ---------- */
.login #login {
	padding: 2rem 0;
}
