/* ==========================================================================
   Leaptel Login Page Styles
   ========================================================================== */

/* ------------------------------------------------------------------
   Page background
   ------------------------------------------------------------------ */
html:has(.login) {
	background: rgba(42, 54, 63, 0.10);
}

body.login {
	background-color: #f3f3f9;
	background-image: url('../images/cover-pattern.png');
	background-position: center;
	background-size: cover;
	opacity: 1;
	background-color: transparent;

	display: flex;
	flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Subtle grid overlay texture */
body.login::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: radial-gradient(rgba(133, 197, 64, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
}

/* ------------------------------------------------------------------
   Logo area
   ------------------------------------------------------------------ */

#login h1 a,
.login h1 a {
	background-image: url('../images/leaptel_logo.png');
	background-color: var(--lt-navy-tint);
	border: none;
	width: 100%;
	height: auto;
	min-height: 75px;
	background-position: center;
	background-size: contain;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

/* 'L' initial as fallback logo */
#login h1 a::after {
	content: 'L';
	font-size: 36px;
	font-weight: 800;
	color: #ffffff;
	font-family: Montserrat, sans-serif;
}

/* ------------------------------------------------------------------
   Login card (#login wrapper)
   ------------------------------------------------------------------ */

#login .login form,
.login #login {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	padding: 36px 40px 28px;
	margin: 0px;
}

.login form {
	border: none;
	padding: 0;
}

/* ------------------------------------------------------------------
   "Back to <site>" link above the card
   ------------------------------------------------------------------ */


.login #backtoblog a:hover,
.login #nav a:hover {
	color: #85C540 !important;
}

/* ------------------------------------------------------------------
   Form labels
   ------------------------------------------------------------------ */

.login label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #2A363F;
}

/* ------------------------------------------------------------------
   Inputs
   ------------------------------------------------------------------ */

.login input[type="text"],
.login input[type="password"] {
	border: 1px solid #e2e4e7 !important;
	border-radius: 6px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	color: #2A363F !important;
	box-shadow: none !important;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: #85C540 !important;
	box-shadow: 0 0 0 2px rgba(133, 197, 64, 0.25) !important;
	outline: none !important;
}

/* ------------------------------------------------------------------
   Submit button
   ------------------------------------------------------------------ */

.login .button-primary,
.login input[type="submit"].button-primary,
#login .button-primary {
	background: #85C540 !important;
	border: none !important;
	border-radius: 6px !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	padding: 12px 24px !important;
	height: auto !important;
	line-height: 1.5 !important;
	width: 100% !important;
	box-shadow: 0 3px 10px rgba(133, 197, 64, 0.4) !important;
	text-shadow: none !important;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.login .button-primary:hover,
#login .button-primary:hover {
	background: #6aad2d !important;
	box-shadow: 0 5px 16px rgba(133, 197, 64, 0.5) !important;
	transform: translateY(-1px);
}

.login .button-primary:active,
#login .button-primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(133, 197, 64, 0.3) !important;
}

/* ------------------------------------------------------------------
   "Remember me" checkbox
   ------------------------------------------------------------------ */
#login p.forgetmenot {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

/* ------------------------------------------------------------------
   Error / info notices
   ------------------------------------------------------------------ */

.login #login_error {
	background: #ffd8d8;
	border-left: 4px solid #dc3232 !important;
	border-radius: 4px;
	color: #7a1515;
	margin-bottom: 16px;
}

.login .message {
	border-left-color: #85C540 !important;
	background: #eef7e1;
	color: #2a6a0e;
	border-radius: 4px;
}

/* ------------------------------------------------------------------
   "Lost your password?" / nav links below the form
   ------------------------------------------------------------------ */

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

/* ------------------------------------------------------------------
   Privacy policy link
   ------------------------------------------------------------------ */

.login .privacy-policy-page-link a {
	color: rgba(255, 255, 255, 0.5) !important;
}

.login .privacy-policy-page-link a:hover {
	color: #85C540 !important;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 481px) {

	#login,
	.login #login {
		padding: 28px 24px 20px;
	}
}
