/**
 * Prosforakias Custom — Auth pages (login / register / lost / reset).
 * Loaded only via prosforakias_is_auth_context().
 *
 * Canvas ownership: body.pfk-auth-page + full-width main.
 * Card centering: .pfk-auth-shell only.
 * Overrides theme.css .site-main { max-width: 72rem } on auth routes only.
 */

:root {
	--pfk-auth-canvas: #f8fafc;
	--pfk-auth-ink: #0f172a;
	--pfk-auth-muted: #64748b;
	--pfk-auth-line: #e5e7eb;
	--pfk-auth-radius-card: 16px;
	--pfk-auth-radius-field: 10px;
	--pfk-auth-field-h: 48px;
	--pfk-auth-card-w: 420px;
}

/* ========== Page canvas (full bleed under header) ========== */
body.pfk-auth-page {
	min-height: 100vh;
	background-color: var(--pfk-auth-canvas);
	box-sizing: border-box;
}

/* Break theme.css .site-main { max-width: 72rem } — root cause of grey strip */
body.pfk-auth-page main.site-main.pfk-auth-main,
body.pfk-auth-page main.pfk-account-shell {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background-color: var(--pfk-auth-canvas);
	box-sizing: border-box;
	min-height: calc(100dvh - 11rem);
}

/* Lost/reset live inside My Account shell — neutralize account max-width */
body.pfk-auth-page main.pfk-account-shell .pfk-account-shell__title,
body.pfk-auth-page main.pfk-account-shell .pfk-account-shell__sidebar,
body.pfk-auth-page main.pfk-account-shell .woocommerce-MyAccount-navigation {
	display: none;
}

body.pfk-auth-page main.pfk-account-shell .pfk-account-shell__layout,
body.pfk-auth-page main.pfk-account-shell .pfk-account-shell__main,
body.pfk-auth-page main.pfk-account-shell .woocommerce-MyAccount-content {
	display: block;
	width: 100%;
	max-width: none;
	float: none;
	margin: 0;
	padding: 0;
}

.pfk-auth-main,
.pfk-auth-main--embedded {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background-color: var(--pfk-auth-canvas);
	box-sizing: border-box;
}

/* ========== Shell: centers card only ========== */
.pfk-auth-shell {
	width: min(100% - 32px, var(--pfk-auth-card-w));
	max-width: var(--pfk-auth-card-w);
	margin: 0 auto;
	padding: 48px 0 56px;
	box-sizing: border-box;
}

@media (min-width: 1024px) {
	.pfk-auth-shell {
		padding: 56px 0 64px;
	}
}

@media (max-width: 767px) {
	.pfk-auth-shell {
		width: calc(100% - 32px);
		padding: 32px 0 48px;
	}
}

/* ========== Card ========== */
.pfk-auth-card {
	width: 100%;
	background: #fff;
	border: 1px solid var(--pfk-auth-line);
	border-radius: var(--pfk-auth-radius-card);
	padding: 30px 32px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.pfk-auth-card {
		padding: 22px 24px;
	}
}

.pfk-auth-card__header {
	margin: 0 0 24px;
	text-align: left;
}

.pfk-auth-card__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--pfk-auth-ink);
	text-align: left;
}

.pfk-auth-card__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pfk-auth-muted);
	text-align: left;
}

.pfk-auth-card__desc--confirm {
	margin-top: 8px;
}

/* ========== Form rhythm ========== */
.pfk-auth-form .form-row,
.pfk-auth-form .woocommerce-form-row {
	margin: 0 0 16px;
	padding: 0;
	width: 100%;
	float: none;
}

.pfk-auth-form .form-row::before,
.pfk-auth-form .form-row::after,
.pfk-auth-form .woocommerce-form-row::before,
.pfk-auth-form .woocommerce-form-row::after {
	display: none;
}

.pfk-auth-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pfk-auth-ink);
	text-align: left;
}

.pfk-auth-field .required {
	color: #b91c1c;
}

.pfk-auth-field .input-text,
.pfk-auth-field input[type="text"],
.pfk-auth-field input[type="email"],
.pfk-auth-field input[type="password"] {
	width: 100%;
	min-height: var(--pfk-auth-field-h);
	height: var(--pfk-auth-field-h);
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: var(--pfk-auth-radius-field);
	font-size: 14px;
	color: var(--pfk-auth-ink);
	background: #fff;
	box-sizing: border-box;
}

.pfk-auth-field .input-text:focus,
.pfk-auth-field input:focus {
	outline: none;
	border-color: var(--pfk-auth-ink);
	box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.pfk-auth-password-field {
	display: block;
}

.pfk-auth-password-input-wrap {
	position: relative;
	display: block;
	height: var(--pfk-auth-field-h);
}

.pfk-auth-password-input-wrap .input-text {
	width: 100%;
	height: var(--pfk-auth-field-h);
	min-height: var(--pfk-auth-field-h);
	padding-right: 92px;
	box-sizing: border-box;
}

.pfk-auth-password-input-wrap .pfk-auth-password-toggle {
	position: absolute;
	top: calc(var(--pfk-auth-field-h) / 2);
	right: 10px;
	transform: translateY(-50%);
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 2px 6px;
	border: 0;
	background: transparent;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	line-height: 1.25;
	border-radius: 4px;
	z-index: 2;
}

.pfk-auth-password-input-wrap .pfk-auth-password-toggle:hover,
.pfk-auth-password-input-wrap .pfk-auth-password-toggle:focus-visible {
	color: #0f172a;
	outline: none;
	background: rgba(241, 245, 249, 0.95);
}

.pfk-auth-password-toggle[aria-pressed="true"] .pfk-auth-password-toggle__label--show,
.pfk-auth-password-toggle[aria-pressed="false"] .pfk-auth-password-toggle__label--hide {
	display: none;
}

.pfk-auth-password-feedback {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.pfk-auth-password-feedback .woocommerce-password-strength,
.pfk-auth-password-feedback .woocommerce-password-hint {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 8px 0 0;
	position: relative;
	float: none;
	clear: both;
}

.pfk-auth-hint {
	display: block;
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #747878;
}

.pfk-auth-password-field.is-meter-active > .pfk-auth-hint {
	display: none;
}

.pfk-auth-name-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

@media (min-width: 640px) {
	.pfk-auth-name-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.pfk-auth-name-grid .pfk-auth-field {
		margin-bottom: 16px;
	}
}

.pfk-auth-row--meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: nowrap;
	margin: 4px 0 16px;
}

@media (max-width: 400px) {
	.pfk-auth-row--meta {
		flex-wrap: wrap;
		row-gap: 10px;
	}
}

.pfk-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
	white-space: nowrap;
}

.pfk-auth-lost {
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	margin-left: auto;
	white-space: nowrap;
}

.pfk-auth-lost:hover {
	color: var(--pfk-auth-ink);
	text-decoration: underline;
}

.pfk-auth-row--submit {
	margin: 0 0 4px;
}

.pfk-auth-submit,
.pfk-auth-form .pfk-auth-submit.button,
.woocommerce-form .pfk-auth-submit.button {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
	line-height: 1;
}

.pfk-auth-submit:hover,
.pfk-auth-submit:focus-visible {
	background: #1e293b;
	outline: none;
	color: #fff;
}

.pfk-auth-submit.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

/* WooCommerce privacy text is removed on /eggrafi/ via remove_action. */

.pfk-auth-terms {
	margin: 12px 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #475569;
}

.pfk-auth-terms label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin: 0;
}

.pfk-auth-terms input {
	margin-top: 3px;
	flex-shrink: 0;
}

.pfk-auth-terms a {
	color: var(--pfk-auth-ink);
	font-weight: 500;
	text-decoration: underline;
}

/* ========== Social (Nextend scoped) ========== */
.pfk-auth-social {
	margin-top: 20px;
}

.pfk-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: #94a3b8;
	font-size: 12px;
}

.pfk-auth-divider::before,
.pfk-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.pfk-auth-divider span {
	white-space: nowrap;
}

.pfk-auth-google .nsl-container,
.pfk-auth-google .nsl-container-buttons {
	width: 100%;
	display: block;
	margin: 0;
	padding: 0;
}

/*
 * Nextend Google dark skin emits inline style="background-color:#131314".
 * Regular CSS cannot beat inline styles — !important is required here only,
 * scoped to .pfk-auth-google (same approach as working 0.6.2.6).
 */
.pfk-auth-google .nsl-button,
.pfk-auth-google .nsl-button-default,
.pfk-auth-google .nsl-button-google,
.pfk-auth-google a.nsl-button,
.pfk-auth-google a .nsl-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #fff !important;
	background-color: #fff !important;
	color: #0f172a !important;
	box-shadow: none !important;
	box-sizing: border-box;
	text-decoration: none !important;
}

.pfk-auth-google .nsl-button:hover,
.pfk-auth-google .nsl-button:focus-visible,
.pfk-auth-google a.nsl-button:hover,
.pfk-auth-google a.nsl-button:focus-visible,
.pfk-auth-google a:hover .nsl-button,
.pfk-auth-google a:focus-visible .nsl-button {
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
	background-color: #f8fafc !important;
	outline: none;
}

.pfk-auth-google .nsl-button-label-container,
.pfk-auth-google .nsl-button-google .nsl-button-label-container {
	color: #0f172a !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
}

.pfk-auth-switch {
	margin: 20px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--pfk-auth-muted);
}

.pfk-auth-switch a {
	font-weight: 600;
	color: var(--pfk-auth-ink);
	text-decoration: none;
}

.pfk-auth-switch a:hover {
	text-decoration: underline;
}

.pfk-auth-home-link,
.pfk-auth-back-home {
	margin: 24px 0 0;
	text-align: center;
	font-size: 14px;
}

.pfk-auth-home-link a,
.pfk-auth-back-home a {
	color: var(--pfk-auth-muted);
	text-decoration: none;
}

.pfk-auth-home-link a:hover,
.pfk-auth-back-home a:hover {
	color: var(--pfk-auth-ink);
}

.pfk-auth-success-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 14px;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
	font-size: 22px;
	font-weight: 700;
}

/* ========== Notices (inside card only) ========== */
.pfk-auth-notices {
	margin: 0 0 16px;
	width: 100%;
	box-sizing: border-box;
}

.pfk-auth-notices .woocommerce-error,
.pfk-auth-notices .woocommerce-message,
.pfk-auth-notices .woocommerce-info,
.pfk-auth-card > .woocommerce-error,
.pfk-auth-card > .woocommerce-message,
.pfk-auth-card > .woocommerce-info,
.pfk-auth-card .woocommerce-notices-wrapper .woocommerce-error,
.pfk-auth-card .woocommerce-notices-wrapper .woocommerce-message,
.pfk-auth-card .woocommerce-notices-wrapper .woocommerce-info {
	display: block;
	list-style: none;
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
	box-sizing: border-box;
}

.pfk-auth-notices .woocommerce-error:last-child,
.pfk-auth-notices .woocommerce-message:last-child,
.pfk-auth-notices .woocommerce-info:last-child {
	margin-bottom: 0;
}

.pfk-auth-notices .woocommerce-error li,
.pfk-auth-notices .woocommerce-message li,
.pfk-auth-notices .woocommerce-info li,
.pfk-auth-card > .woocommerce-error li,
.pfk-auth-card > .woocommerce-message li,
.pfk-auth-card > .woocommerce-info li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfk-auth-notices .woocommerce-error li + li,
.pfk-auth-card > .woocommerce-error li + li {
	margin-top: 6px;
}

.pfk-auth-notices .woocommerce-error,
.pfk-auth-card > .woocommerce-error,
.pfk-auth-card .woocommerce-notices-wrapper .woocommerce-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.pfk-auth-notices .woocommerce-message,
.pfk-auth-card > .woocommerce-message,
.pfk-auth-card .woocommerce-notices-wrapper .woocommerce-message {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.pfk-auth-notices .woocommerce-info,
.pfk-auth-card > .woocommerce-info,
.pfk-auth-card .woocommerce-notices-wrapper .woocommerce-info {
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #334155;
}

.pfk-auth-notices a,
.pfk-auth-card > .woocommerce-error a,
.pfk-auth-card > .woocommerce-message a,
.pfk-auth-card > .woocommerce-info a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

/* Hide WC notice dumps that escape outside the auth card (account shell) */
body.pfk-auth-page .pfk-account-shell__main > .woocommerce-notices-wrapper,
body.pfk-auth-page .pfk-account-shell__main > .woocommerce-error,
body.pfk-auth-page .pfk-account-shell__main > .woocommerce-message,
body.pfk-auth-page .pfk-account-shell__main > .woocommerce-info,
body.pfk-auth-page .pfk-account-shell > .woocommerce-notices-wrapper,
body.pfk-auth-page main.pfk-auth-main > .woocommerce-notices-wrapper,
body.pfk-auth-page main.pfk-auth-main > .woocommerce-error,
body.pfk-auth-page main.pfk-auth-main > .woocommerce-message,
body.pfk-auth-page main.pfk-auth-main > .woocommerce-info {
	display: none;
}

.pfk-auth-card .woocommerce-password-strength,
.pfk-auth-card .woocommerce-password-hint {
	margin-top: 8px;
	font-size: 12px;
}

/* Register shell slightly wider for two-column names */
body.pfk-auth-page--register .pfk-auth-shell {
	width: min(100% - 32px, 430px);
	max-width: 430px;
}
