/* Make parent theme containers full-screen and transparent for logged-out account pages */
body.woocommerce-account:not(.logged-in) {
	background-color: #09090e !important;
}
body.woocommerce-account:not(.logged-in) #page,
body.woocommerce-account:not(.logged-in) #content,
body.woocommerce-account:not(.logged-in) .site-content,
body.woocommerce-account:not(.logged-in) .site-main,
body.woocommerce-account:not(.logged-in) .inside-article {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

/* Hide default theme page title on login screen */
body.woocommerce-account:not(.logged-in) .entry-header,
body.woocommerce-account:not(.logged-in) .entry-title {
	display: none !important;
}

.enertime-login-page-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 108px 20px 60px; /* Offset the 68px fixed nav header + 40px spacing */
	box-sizing: border-box;
	background: #09090e;
	position: relative;
	overflow: hidden;
}

/* Hex background pattern for the whole login section */
.enertime-login-page-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(circle at 20% 30%, rgba(192, 57, 43, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(26, 26, 46, 0.6) 0%, transparent 60%);
	pointer-events: none;
	z-index: 1;
}

.enertime-login-container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	width: 100%;
	max-width: 1100px;
	min-height: 620px;
	background: rgba(13, 13, 13, 0.82);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(255, 255, 255, 0.06);
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

/* ─── LEFT PANEL (VISUAL & BRANDING) ─── */
.enertime-login-visual-panel {
	background-size: cover;
	background-position: center;
	padding: 60px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	color: #fff;
}

.enertime-login-visual-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(13, 13, 13, 0.3) 0%, rgba(26, 26, 46, 0.9) 100%);
	z-index: 1;
}

.enertime-visual-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

.enertime-visual-logo {
	margin-bottom: 40px;
}
.enertime-logo-txt {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
	text-transform: uppercase;
}
.enertime-logo-txt em {
	color: var(--ener-red);
	font-style: normal;
}

.enertime-visual-headline {
	font-family: var(--font-display);
	font-size: clamp(32px, 3.5vw, 48px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: #fff;
	margin: 0 0 20px;
	text-transform: uppercase;
}

.enertime-visual-subhead {
	font-family: var(--font-body);
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
	max-width: 440px;
	margin: 0 0 40px;
}

.enertime-visual-badges {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.enertime-visual-badge {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.enertime-visual-badge .badge-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(192, 57, 43, 0.15);
	border: 1px solid var(--ener-red);
	color: var(--ener-red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: bold;
	flex-shrink: 0;
	margin-top: 3px;
	box-shadow: 0 0 8px rgba(192, 57, 43, 0.2);
}
.enertime-visual-badge div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.enertime-visual-badge strong {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.enertime-visual-badge span {
	font-family: var(--font-body);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
}

/* ─── RIGHT PANEL (FORM) ─── */
.enertime-login-form-panel {
	background: rgba(18, 18, 30, 0.4);
	padding: 50px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.enertime-login-card {
	width: 100%;
	max-width: 400px;
}

/* Tabs switcher */
.enertime-login-tabs {
	display: flex;
	gap: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 35px;
}
.enertime-tab-btn {
	background: none;
	border: none;
	padding: 0 0 14px;
	color: rgba(255, 255, 255, 0.4);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: color 0.2s ease;
}
.enertime-tab-btn:hover {
	color: rgba(255, 255, 255, 0.85);
}
.enertime-tab-btn.active {
	color: #fff;
}
.enertime-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--ener-red);
	box-shadow: 0 0 10px var(--ener-red);
}

.enertime-login-single-title h2 {
	font-family: var(--font-display);
	color: #fff;
	font-size: 24px;
	margin: 0 0 30px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Tab Panels anim */
.enertime-tab-panel {
	display: none;
}
.enertime-tab-panel.active {
	display: block;
	animation: enertimeTabFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes enertimeTabFade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ─── CUSTOM INPUT FIELDS (FLOATING LABELS) ─── */
.enertime-field-group {
	position: relative;
	margin-bottom: 22px !important;
	width: 100% !important;
	display: block !important;
}

.enertime-field-group input:not([type="checkbox"]), 
.enertime-field-group select {
	width: 100%;
	height: 52px;
	padding: 18px 16px 6px !important;
	background: rgba(255, 255, 255, 0.03) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: var(--radius-sm) !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	box-sizing: border-box !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.enertime-field-group input::placeholder {
	color: rgba(255, 255, 255, 0.4) !important;
	transition: color 0.2s ease;
}

.enertime-field-group input:not(:focus)::placeholder {
	color: transparent !important;
}

.enertime-field-group select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 16px !important;
}

.enertime-field-group input:focus,
.enertime-field-group select:focus {
	border-color: var(--ener-red) !important;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18) !important;
	background: rgba(255, 255, 255, 0.05) !important;
}

/* Label Styling */
.enertime-field-group label {
	position: absolute;
	left: 16px;
	top: 15px;
	color: rgba(255, 255, 255, 0.45);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 400;
	pointer-events: none;
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
	transform-origin: left top;
	display: inline-block;
	margin: 0;
	line-height: 1;
}

.enertime-field-group label .required {
	color: var(--ener-red);
	font-weight: bold;
}

/* Floating animation hooks */
.enertime-field-group input:focus + label,
.enertime-field-group input:not(:placeholder-shown) + label,
.enertime-field-group input.has-content + label,
.enertime-field-group select:focus + label,
.enertime-field-group select.has-content + label {
	transform: translateY(-8px) scale(0.8);
	color: var(--ener-red);
}

/* Register form half-width rows */
.woocommerce-form-register {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	justify-content: space-between;
}
.woocommerce-form-register .enertime-field-group {
	width: 100% !important;
}
/* Force first/last name to stand side by side if converted */
.woocommerce-form-register #reg_billing_first_name_field,
.woocommerce-form-register #reg_billing_last_name_field {
	width: calc(50% - 10px) !important;
	display: inline-block !important;
}

/* ─── PASSWORD FIELD OVERRIDES ─── */
.password-field-group {
	position: relative;
}
.password-field-group input {
	padding-right: 46px !important;
}
.enertime-password-toggle {
	position: absolute;
	right: 12px;
	top: 14px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	transition: color 0.2s ease;
}
.enertime-password-toggle:hover {
	color: #fff;
}
.enertime-password-toggle svg {
	width: 20px;
	height: 20px;
}

/* ─── CHECKBOXES & LINK LAYOUTS ─── */
.enertime-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.remember-me-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.7);
	font-family: var(--font-body);
	font-size: 13px;
	user-select: none;
}
.remember-me-checkbox input[type="checkbox"] {
	margin: 0;
	accent-color: var(--ener-red);
}

.lost_password {
	margin: 0;
	font-size: 13px;
}
.lost_password a {
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease;
}
.lost_password a:hover {
	color: var(--ener-red);
}

.enertime-register-notice {
	font-family: var(--font-body);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.5;
	margin: 0 0 20px;
}

/* Submit Button */
.enertime-btn-submit {
	width: 100% !important;
	height: 50px;
	background: var(--ener-red) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--radius-sm) !important;
	font-family: var(--font-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
	box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3) !important;
	margin-top: 15px !important;
}

.enertime-btn-submit:hover {
	background: var(--ener-red-dk) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4) !important;
}

.enertime-btn-submit:active {
	transform: translateY(0) !important;
}

/* Distributor Checkbox styling row */
.enertime-apply-distributor-checkbox-row {
	margin: 10px 0 20px !important;
}
.enertime-apply-distributor-checkbox-row label {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
	user-select: none;
}
.enertime-apply-distributor-checkbox-row input {
	accent-color: var(--ener-red);
	margin: 0;
	width: 18px;
	height: 18px;
}

/* WooCommerce error notice override inside login wrap */
.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message {
	background-color: rgba(13, 13, 29, 0.9) !important;
	border-top: 3px solid var(--ener-red) !important;
	color: #fff !important;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
	font-family: var(--font-body);
	border-radius: var(--radius-sm);
	margin-bottom: 25px !important;
}
.woocommerce-error a, 
.woocommerce-info a, 
.woocommerce-message a {
	color: var(--ener-red) !important;
}

/* WooCommerce privacy policy text override */
.woocommerce-privacy-policy-text {
	color: rgba(255, 255, 255, 0.45) !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	line-height: 1.5 !important;
	margin: 20px 0 !important;
	width: 100% !important;
	display: block !important;
}
.woocommerce-privacy-policy-text p {
	color: rgba(255, 255, 255, 0.45) !important;
	margin: 0 !important;
}
.woocommerce-privacy-policy-text a {
	color: var(--ener-red) !important;
	text-decoration: underline !important;
	font-weight: 500 !important;
}
.woocommerce-privacy-policy-text a:hover {
	color: var(--ener-red-dk) !important;
}

/* ─── CUSTOM SOCIAL LOGIN BUTTONS ─── */
.enertime-social-login-separator {
	margin: 30px 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.enertime-social-login-separator::before,
.enertime-social-login-separator::after {
	content: '';
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	flex: 1;
}
.enertime-social-login-separator span {
	padding: 0 14px;
	color: rgba(255, 255, 255, 0.35);
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.enertime-social-login-buttons {
	display: flex;
	gap: 12px;
	width: 100%;
	margin-top: 10px;
}

.enertime-social-btn {
	flex: 1;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: var(--radius-sm);
	text-decoration: none !important;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.enertime-social-btn .social-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Google Sign-in theme */
.enertime-btn-google {
	background: rgba(255, 255, 255, 0.03);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.enertime-btn-google:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Apple Sign-in theme */
.enertime-btn-apple {
	background: #ffffff;
	color: #0d0d0d !important;
	border: 1px solid #ffffff;
}
.enertime-btn-apple:hover {
	background: #f0f0f5;
	border-color: #f0f0f5;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.enertime-social-btn:active {
	transform: translateY(0);
}

/* Hide default miniOrange widgets & unconfigured warnings on the login page */
.mo_openid_login_outer,
.mo-openid-app-icons,
.mo_openid_wc_login,
.mo_openid_wc_login_before,
.mo_openid_wc_login_center,
.mo_openid_login_wid,
.mo_openid_login_wid_shortcode {
	display: none !important;
}

/* ─── RESPONSIVENESS ─── */
@media (max-width: 900px) {
	.enertime-login-container {
		grid-template-columns: 1fr;
		max-width: 500px;
		min-height: auto;
	}
	.enertime-login-visual-panel {
		display: none;
	}
	.enertime-login-form-panel {
		padding: 45px 30px;
	}
	.enertime-login-page-wrap {
		padding: 20px 15px;
	}
}
