/* ============================================================
   CarePoi Custom Login – Full redesign
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body.login {
	width: 100% !important;
	height: 100% !important;
	min-height: 100vh !important;
	padding: 0 !important;
	background: #fff !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif !important;
}

/* ── Two-panel wrapper ── */
#cpl-wrapper {
	display: flex;
	width: 100vw;
	min-height: 100vh;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
#cpl-left {
	flex: 0 0 42%;
	max-width: 42%;
	min-height: 100vh;
	background: linear-gradient(145deg, #061120 0%, #0b1f3a 35%, #0d3057 70%, #0a3f6f 100%);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 52px 60px;
	position: relative;
	overflow: hidden;
}

/* Animated glow rings */
.cpl-left-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.cpl-ring {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(0, 180, 216, 0.12);
}

.cpl-ring-1 {
	width: 560px;
	height: 560px;
	top: -120px;
	right: -180px;
	animation: cpl-pulse 8s ease-in-out infinite;
}

.cpl-ring-2 {
	width: 400px;
	height: 400px;
	bottom: -100px;
	left: -100px;
	animation: cpl-pulse 10s ease-in-out infinite reverse;
	border-color: rgba(0, 150, 199, 0.1);
}

.cpl-ring-3 {
	width: 260px;
	height: 260px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-color: rgba(0, 180, 216, 0.07);
	animation: cpl-pulse 6s ease-in-out infinite;
}

@keyframes cpl-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%       { transform: scale(1.05); opacity: 0.7; }
}

.cpl-ring-3 {
	animation: cpl-pulse-center 6s ease-in-out infinite;
}

@keyframes cpl-pulse-center {
	0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 0.6; }
}

/* Brand content */
.cpl-brand {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.cpl-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 64px;
}

.cpl-logo-img {
	height: 48px;
	width: auto;
	display: block;
	object-fit: contain;
}

.cpl-tagline {
	font-size: 40px;
	font-weight: 700;
	color: #fff;
	line-height: 1.22;
	letter-spacing: -0.8px;
	margin-bottom: 20px;
}

.cpl-subtitle {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.65;
	max-width: 300px;
	margin-bottom: 40px;
}

.cpl-badges {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cpl-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
	letter-spacing: 0.3px;
}

/* Left footer */
.cpl-left-footer {
	position: relative;
	z-index: 2;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
#cpl-right {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: #ffffff;
}

.cpl-right-inner {
	width: 100%;
	max-width: 400px;
}

.cpl-right-header {
	margin-bottom: 44px;
}

.cpl-right-logo {
	font-size: 18px;
	font-weight: 700;
	color: #0b1f3a;
	letter-spacing: 0.3px;
}

.cpl-heading {
	margin-bottom: 32px;
}

.cpl-heading h2 {
	font-size: 26px;
	font-weight: 700;
	color: #0b1f3a;
	margin: 0 0 6px;
	letter-spacing: -0.3px;
}

.cpl-heading p {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

/* ============================================================
   WP FORM RESET & RESTYLING
   ============================================================ */

/* Container */
body.login #login {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	border: none !important;
}

body.login #login h1 { display: none !important; }

body.login form#loginform,
body.login form#lostpasswordform,
body.login form#resetpassform {
	background: none !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Field groups */
body.login .login-username,
body.login .login-password {
	margin-bottom: 20px !important;
	float: none !important;
}

/* Labels */
body.login form label {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #374151 !important;
	display: block !important;
	margin-bottom: 7px !important;
	line-height: 1.4 !important;
}

/* Inputs */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	width: 100% !important;
	height: 48px !important;
	padding: 0 14px !important;
	border: 1.5px solid #e5e7eb !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	color: #111827 !important;
	background: #f9fafb !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	border-color: #0d3057 !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(13, 48, 87, 0.1) !important;
}

/* Password wrapper & show/hide toggle */
body.login .wp-pwd {
	position: relative !important;
}

body.login .wp-pwd input[type="password"],
body.login .wp-pwd input[type="text"] {
	padding-right: 48px !important;
}

body.login button.button.wp-hide-pw {
	position: absolute !important;
	right: 10px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 4px !important;
	min-height: unset !important;
	height: auto !important;
	line-height: 1 !important;
	color: #9ca3af !important;
	cursor: pointer !important;
}

body.login button.button.wp-hide-pw:hover {
	color: #0d3057 !important;
}

/* Remember me */
body.login .forgetmenot {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	float: none !important;
}

body.login .forgetmenot label {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #6b7280 !important;
	margin: 0 !important;
	cursor: pointer !important;
}

body.login input[type="checkbox"] {
	width: 15px !important;
	height: 15px !important;
	accent-color: #0d3057 !important;
	cursor: pointer !important;
}

/* Submit */
body.login .submit {
	clear: both !important;
	margin-top: 24px !important;
}

body.login #wp-submit {
	width: 100% !important;
	height: 50px !important;
	padding: 0 !important;
	background: #0b1f3a !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px !important;
	border: none !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	box-shadow: 0 4px 16px rgba(11, 31, 58, 0.28) !important;
	transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease !important;
}

body.login #wp-submit:hover {
	background: #0d2f52 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 22px rgba(11, 31, 58, 0.36) !important;
}

body.login #wp-submit:active {
	transform: translateY(0) !important;
	box-shadow: 0 3px 10px rgba(11, 31, 58, 0.25) !important;
}

/* Error / message boxes */
body.login #login_error,
body.login .message,
body.login .success {
	border-radius: 8px !important;
	font-size: 13px !important;
	margin: 0 0 20px !important;
	padding: 12px 14px !important;
	line-height: 1.5 !important;
}

body.login #login_error {
	border-left: 3px solid #ef4444 !important;
	background: #fef2f2 !important;
	color: #b91c1c !important;
}

body.login .message {
	border-left: 3px solid #0d3057 !important;
	background: #eff6ff !important;
	color: #1e40af !important;
}

body.login .success {
	border-left: 3px solid #10b981 !important;
	background: #ecfdf5 !important;
	color: #065f46 !important;
}

/* Nav links (forgot password) */
body.login #nav {
	text-align: center !important;
	margin-top: 20px !important;
	padding: 0 !important;
	background: none !important;
}

body.login #nav a,
body.login #nav .login-dashboard-link {
	font-size: 13px !important;
	color: #9ca3af !important;
	text-decoration: none !important;
	transition: color 0.15s !important;
}

body.login #nav a:hover {
	color: #0b1f3a !important;
	text-decoration: underline !important;
}

/* Back to blog / privacy – completely hidden */
body.login #backtoblog,
body.login .privacy-policy-page-link {
	display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
	#cpl-wrapper {
		flex-direction: column;
	}

	#cpl-left {
		flex: none;
		max-width: 100%;
		min-height: auto;
		padding: 40px 32px 36px;
	}

	.cpl-tagline {
		font-size: 26px;
	}

	.cpl-logo {
		margin-bottom: 28px;
	}

	.cpl-brand {
		justify-content: flex-start;
	}

	#cpl-right {
		padding: 36px 24px 48px;
	}
}

@media (max-width: 480px) {
	#cpl-right {
		padding: 28px 18px 40px;
	}
}
