/**
 * LMIn Auth Module Styles
 *
 * Styling for Google Login button and Turnstile widget on wp-login.php
 *
 * @package LMIn
 */

/* ============================================================
   Google "Login with Google" Button
   ============================================================ */

.lmin-google-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 10px 16px !important;
	margin: 12px 0 !important;
	background-color: #ffffff !important;
	color: #3c4043 !important;
	border: 1px solid #dadce0 !important;
	border-radius: 4px !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: #f8f9fa !important;
	border-color: #d2d3d4 !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lmin-google-btn:active {
	background-color: #f1f3f4 !important;
}

.lmin-google-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Separator between Google button and login form */
#login form p + .lmin-google-btn,
.login-submit + .lmin-google-btn {
	margin-top: 8px;
}

/* Place Google button above the login form */
#login form:first-of-type {
	margin-top: 0;
}

/* ============================================================
   Turnstile Widget on Login Page
   ============================================================ */

#lmin-turnstile-auth-container {
	margin: 16px 0;
	text-align: center;
}

#lmin-turnstile-auth-container iframe {
	display: inline-block !important;
}

/* Hide the hidden token input — it just carries the value for form submission */
#lmin-turnstile-token {
	display: none;
}

/* ============================================================
   Auth Error Messages
   ============================================================ */

.login .lmin-auth-error {
	display: block;
	padding: 12px 16px;
	margin: 16px 0;
	background-color: #fce8e6;
	border-left: 4px solid #d93025;
	color: #d93025;
	font-size: 14px;
	line-height: 1.4;
}

.login .lmin-auth-notice {
	display: block;
	padding: 12px 16px;
	margin: 16px 0;
	background-color: #e8f0fe;
	border-left: 4px solid #4285f4;
	color: #1967d2;
	font-size: 14px;
	line-height: 1.4;
}

.login .lmin-auth-success {
	display: block;
	padding: 12px 16px;
	margin: 16px 0;
	background-color: #e6f4ea;
	border-left: 4px solid #1e8e3e;
	color: #1e8e3e;
	font-size: 14px;
	line-height: 1.4;
}

/* ============================================================
   Login form — adjust spacing for Google button
   ============================================================ */

#login {
	width: 320px;
	padding: 40px 0 24px;
}

#loginform,
#registerform,
#lostpasswordform {
	padding: 26px 24px;
}

/* ============================================================
   Blocked state styling
   ============================================================ */

.lmin-blocked-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	margin: 16px 0;
	background-color: #fce8e6;
	border: 1px solid #f1c6c2;
	border-radius: 4px;
	color: #c5221f;
	font-size: 13px;
}

.lmin-blocked-notice .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
