/**
 * PFC front-end login popup. Dark, on-brand (navy #0c0f15 / blue #1D4594),
 * matches the site's aesthetic. Lives in the plugin so it is theme-independent.
 */

.pfc-login-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 7vh 16px 16px;
	background: rgba(6, 9, 14, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	overflow-y: auto;
}
.pfc-login-overlay.is-open {
	display: flex;
}

.pfc-login-modal {
	position: relative;
	width: 100%;
	max-width: 408px;
	background: #0e1320;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	color: #e8ecf3;
	padding: 30px 30px 26px;
	font-family: inherit;
	transform: translateY(-8px);
	opacity: 0;
	transition: transform 0.18s ease, opacity 0.18s ease;
}
.pfc-login-overlay.is-open .pfc-login-modal {
	transform: translateY(0);
	opacity: 1;
}

.pfc-login-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	transition: color 0.15s ease, background 0.15s ease;
}
.pfc-login-close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.pfc-login-head {
	margin-bottom: 18px;
}
.pfc-login-head h2 {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.01em;
}
.pfc-login-sub {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.pfc-login-field {
	display: block;
	margin: 0 0 14px;
}
.pfc-login-field > span {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 6px;
}
.pfc-login-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	font-size: 15px;
	color: #fff;
	background: #111a2a;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 9px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pfc-login-field input:focus {
	border-color: #4a7bd9;
	box-shadow: 0 0 0 3px rgba(29, 69, 148, 0.35);
}

.pfc-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	margin: 2px 0 18px;
	cursor: pointer;
}
.pfc-login-remember input {
	width: 16px;
	height: 16px;
	accent-color: #1D4594;
}

.pfc-login-submit {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: #1D4594;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}
.pfc-login-submit:hover {
	background: #163776;
}
.pfc-login-submit:active {
	transform: translateY(1px);
}
.pfc-login-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.pfc-login-link-btn {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 4px;
	font-size: 13px;
	color: #9cc0ff;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: center;
}
.pfc-login-link-btn:hover {
	color: #fff;
	text-decoration: underline;
}

.pfc-login-error {
	background: rgba(214, 54, 56, 0.12);
	border: 1px solid rgba(214, 54, 56, 0.5);
	color: #ffb4b5;
	font-size: 13px;
	padding: 9px 12px;
	border-radius: 8px;
	margin-bottom: 14px;
}
.pfc-login-note {
	background: rgba(70, 180, 80, 0.12);
	border: 1px solid rgba(70, 180, 80, 0.5);
	color: #b7e6bd;
	font-size: 13px;
	padding: 9px 12px;
	border-radius: 8px;
	margin-bottom: 14px;
}

/* The trigger element in the footer (or anywhere) gets a pointer cursor. */
.pfc-login-trigger {
	cursor: pointer;
}

@media (max-width: 480px) {
	.pfc-login-overlay { padding-top: 4vh; }
	.pfc-login-modal { padding: 26px 20px 22px; }
}
