/**
 * AtlasCRM — WordPress Login Page Override
 *
 * Styles wp-login.php (login, lost password, reset password)
 * to match the AtlasCRM dark glass UI.
 *
 * NOTE: CSS custom properties from main.css are NOT available here.
 * All values are hardcoded from the theme's design tokens.
 *
 * @package AtlasCRM
 * @since   1.5.1
 */

/* ===== Page background ===== */
body.login {
	background: #050816;
	font-family: 'Plus Jakarta Sans', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

/* ===== Logo ===== */
.login h1 a {
	background-image: none;
	text-indent: 0;
	width: auto;
	height: auto;
	font-family: 'Outfit', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #E2E8F0;
	letter-spacing: -0.5px;
	pointer-events: none;
}
.login h1 a::before {
	content: 'Atlas';
	color: #E2E8F0;
}
.login h1 a::after {
	content: 'CRM';
	color: #3B82F6;
	margin-left: 2px;
}

/* ===== Login form card ===== */
.login form {
	background: rgba(10, 14, 26, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(24px);
	padding: 32px 28px;
}

/* Top glow accent — matches auth-card::before */
.login form::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 20%;
	right: 20%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #3B82F6, transparent);
	border-radius: 20px 20px 0 0;
}
.login form {
	position: relative;
	overflow: hidden;
}

/* ===== Form inputs ===== */
.login form .input,
.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"] {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	color: #E2E8F0;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 15px;
	padding: 12px 16px;
	outline: none;
	transition: border-color 0.3s, box-shadow 0.3s;
}
.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="password"]:focus,
.login form input[type="email"]:focus {
	border-color: #3B82F6;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== Labels ===== */
.login label {
	color: #94A3B8;
	font-size: 13px;
	font-weight: 600;
}

/* ===== Submit button ===== */
.wp-core-ui .button-primary {
	background: linear-gradient(135deg, #2563EB, #1d4ed8) !important;
	border: none !important;
	border-radius: 12px !important;
	box-shadow: 0 0 20px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
	color: #fff !important;
	font-family: 'Plus Jakarta Sans', sans-serif !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	padding: 10px 24px !important;
	cursor: pointer;
	transition: transform 0.3s, box-shadow 0.3s;
	text-shadow: none !important;
	height: auto !important;
	line-height: 1.4 !important;
}
.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	transform: translateY(-2px);
	box-shadow: 0 0 30px rgba(37, 99, 235, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* ===== Links ===== */
.login #backtoblog a,
.login #nav a,
.login .privacy-policy-page-link a {
	color: #3B82F6;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s;
}
.login #backtoblog a:hover,
.login #nav a:hover,
.login .privacy-policy-page-link a:hover {
	color: #60A5FA;
}

/* ===== Error / success messages ===== */
.login .message,
.login .success {
	background: rgba(37, 99, 235, 0.1);
	border-left: 4px solid #3B82F6;
	color: #94A3B8;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
}
.login #login_error {
	background: rgba(239, 68, 68, 0.1);
	border-left: 4px solid #EF4444;
	color: #fca5a5;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
}

/* ===== "Remember Me" checkbox ===== */
.login .forgetmenot label {
	color: #64748B;
	font-size: 13px;
}
.login input[type="checkbox"] {
	accent-color: #2563EB;
}

/* ===== Hide unnecessary WP branding ===== */
.login .privacy-policy-page-link {
	margin-top: 16px;
}

/* ===== Login wrapper sizing ===== */
#login {
	width: 100%;
	max-width: 400px;
	padding: 0 20px;
}
