/**
 * LMIn Auth Module Styles
 *
 * Sleek, modern styling for wp-login.php
 *
 * @package LMIn
 */

/* ============================================================
   Page — Background & Body
   ============================================================ */

body.login {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	min-height: 100vh;
}

/* ============================================================
   Login Container
   ============================================================ */

#login {
	width: 360px;
	padding: 48px 0 32px;
}

/* ============================================================
   Login Card (form wrapper)
   ============================================================ */

#loginform,
#registerform,
#lostpasswordform {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 32px 28px;
	border: 1px solid #f1f5f9;
}

/* ============================================================
   Google "Login with Google" Section (above form)
   ============================================================ */

.lmin-google-section {
	text-align: center;
	margin-bottom: 24px;
}

.lmin-google-heading {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	margin: 0 0 12px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.lmin-google-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 11px 16px !important;
	margin: 0 0 0 !important;
	background-color: #ffffff !important;
	color: #334155 !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 10px !important;
	font-family: 'Google Sans', arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.lmin-google-btn:hover {
	background-color: #f8fafc !important;
	border-color: #cbd5e1 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.lmin-google-btn:active {
	background-color: #f1f5f9 !important;
	transform: translateY(0);
}

.lmin-google-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.lmin-login-divider {
	display: flex;
	align-items: center;
	margin: 20px 0;
}

.lmin-login-divider::before,
.lmin-login-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.lmin-login-divider span {
	padding: 0 14px;
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}

/* ============================================================
   Form Labels
   ============================================================ */

.login form label {
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
	display: block;
}

/* ============================================================
   Input Fields
   ============================================================ */

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	border-radius: 10px;
	border: 1.5px solid #e2e8f0;
	padding: 11px 14px;
	font-size: 14px;
	color: #1e293b;
	background: #f8fafc;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	width: 100%;
	box-sizing: border-box;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
	background: #ffffff;
	outline: none;
}

.login form .input:hover:not(:focus),
.login input[type="text"]:hover:not(:focus),
.login input[type="password"]:hover:not(:focus),
.login input[type="email"]:hover:not(:focus) {
	border-color: #cbd5e1;
}

/* ============================================================
   User-Login Wrapper
   ============================================================ */

.login .user-login-wrap {
	margin-bottom: 16px;
}

/* ============================================================
   Submit Button — Primary
   ============================================================ */

#wp-submit {
	width: 100%;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
	padding:.5rem;
}

#wp-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
	opacity: 0.95;
}

#wp-submit:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   Remember Me Row
   ============================================================ */

.login .forgetmenot {
	float: left;
	margin-bottom: 1rem !important;
}

.login .forgetmenot input[type="checkbox"] {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1.5px solid #e2e8f0;
	accent-color: #6366f1;
}

.login .forgetmenot label {
	font-size: 13px;
	font-weight: 400;
	color: #64748b;
	display: inline;
}

/* ============================================================
   Turnstile Widget (inside login form)
   ============================================================ */

#lmin-turnstile-auth-container {
	margin: 20px 0 16px;
	text-align: center;
}

#lmin-turnstile-auth-container iframe {
	display: inline-block !important;
}

#lmin-turnstile-token {
	display: none;
}

/* ============================================================
   Auth Messages (custom)
   ============================================================ */

.login .lmin-auth-error {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #dc2626;
	font-size: 13px;
	line-height: 1.5;
}

.login .lmin-auth-error .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
	color: #ef4444;
}

.login .lmin-auth-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	color: #2563eb;
	font-size: 13px;
	line-height: 1.5;
}

.login .lmin-auth-success {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	color: #16a34a;
	font-size: 13px;
	line-height: 1.5;
}

/* ============================================================
   WP Built-in Error
   ============================================================ */

.login #login_error {
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.5;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

/* ============================================================
   Blocked Notice
   ============================================================ */

.lmin-blocked-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #dc2626;
	font-size: 13px;
}

.lmin-blocked-notice .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #ef4444;
}

/* ============================================================
   Navigation Links (Lost password, Back to blog)
   ============================================================ */

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

.login #nav a,
.login #backtoblog a {
	color: #64748b;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s;
}

.login #nav a:hover,
.login #backtoblog a:hover {
	color: #6366f1;
}

/* ============================================================
   Lost Password Form
   ============================================================ */

#lostpasswordform {
	text-align: center;
}

#lostpasswordform p {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 20px;
}

/* ============================================================
   Registration Form
   ============================================================ */

#registerform > p {
	margin-bottom: 16px;
}

#registerform > p:first-of-type {
	margin-bottom: 20px;
}

/* ============================================================
   Focus visible for accessibility
   ============================================================ */

.login :focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

.login #wp-submit:focus-visible {
	outline: none;
}
