/* ============================================================
   PZ LOGIN / REGISTER — pz-login.css
   Option C: Clean Card with Feature Chips
   Scoped under .pz-login
   ============================================================ */

/* ── Layout ── */
.pz-login {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	position: relative;
}

/* Subtle background radials */
.pz-login::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(59,130,246,.04) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(96,165,250,.04) 0%, transparent 50%);
	pointer-events: none;
}

/* ── Logo ── */
.pz-login__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	position: relative;
	z-index: 1;
}
.pz-login__logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--pz-primary), var(--pz-primary-dark));
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pz-login__logo-icon .mi {
	color: #fff;
	font-size: 22px;
}
.pz-login__logo-text {
	font-size: 22px;
	font-weight: 700;
	color: var(--pz-gray-900);
}
.pz-login__logo-text span {
	color: var(--pz-primary);
}

/* ── Card ── */
.pz-login__card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.06);
	overflow: hidden;
	position: relative;
	z-index: 1;
}

/* Animated gradient strip at top */
.pz-login__strip {
	height: 5px;
	background: linear-gradient(90deg, var(--pz-primary), #60a5fa, var(--pz-primary-dark), var(--pz-primary));
	background-size: 200% 100%;
	animation: pz-shimmer 3s ease infinite;
}
@keyframes pz-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ── Heading ── */
.pz-login__heading {
	text-align: center;
	margin-bottom: 24px;
}
.pz-login__heading h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--pz-gray-900);
	margin-bottom: 4px;
}
.pz-login__heading p {
	font-size: 14px;
	color: var(--pz-gray-500);
	margin: 0;
}

/* ── Tabs — underline style ── */
.pz-login__tabs {
	display: flex;
	border-bottom: 2px solid var(--pz-gray-100);
	margin-bottom: 24px;
}
.pz-login__tab {
	flex: 1;
	text-align: center;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 600;
	border: none;
	background: none;
	color: var(--pz-gray-400);
	cursor: pointer;
	transition: color .2s;
	position: relative;
	font-family: inherit;
	min-height: 44px;
}
.pz-login__tab:hover {
	color: var(--pz-gray-600);
}
.pz-login__tab--active {
	color: var(--pz-primary);
}
.pz-login__tab--active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 20%;
	width: 60%;
	height: 2px;
	background: var(--pz-primary);
	border-radius: 2px;
}

/* ── Panels ── */
.pz-login__panel {
	display: none;
	padding: 0 28px 28px;
}
.pz-login__panel--active {
	display: block;
}

/* ── Social Buttons ── */
.pz-login__social {
	display: flex;
	gap: 12px;
	margin-bottom: 0;
}
.pz-login__social:empty {
	display: none;
}

/* Social sign-in buttons (Google, Facebook) */
.pz-social-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 46px;
	min-height: 46px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .2s, box-shadow .2s, opacity .2s;
	border: 1.5px solid var(--pz-gray-200);
	background: #fff;
	color: var(--pz-gray-700);
	padding: 0 16px;
	position: relative;
	overflow: hidden;
}
.pz-social-btn svg {
	flex-shrink: 0;
}
.pz-social-btn:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pz-social-btn:active {
	transform: scale(.985);
}
.pz-social-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.pz-social-btn--loading {
	opacity: .7;
}

/* Google */
.pz-social-btn--google:hover {
	border-color: #4285F4;
	background: #f8faff;
}

/* Facebook */
.pz-social-btn--facebook {
	background: #1877F2;
	border-color: #1877F2;
	color: #fff;
}
.pz-social-btn--facebook:hover {
	background: #166fe5;
	border-color: #166fe5;
	box-shadow: 0 2px 8px rgba(24,119,242,.25);
}

/* Social error message */
.pz-social-error {
	background: #fef2f2;
	color: #ef4444;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin: 12px 0 0;
}

/* Social buttons inside sell page */
.pz-sell .pz-social-btn {
	min-height: 44px;
	height: 44px;
}

/* ── Divider ── */
.pz-login__divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 20px 0;
	font-size: 12px;
	color: var(--pz-gray-400);
	text-transform: uppercase;
	letter-spacing: .5px;
}
.pz-login__divider::before,
.pz-login__divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--pz-gray-200);
}
.pz-login__divider span {
	font-size: 12px;
	color: var(--pz-gray-400);
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* ── Hide social divider when social area is empty ── */
.pz-login__social:empty + .pz-login__divider {
	display: none;
}

/* ── Form Fields ── */
.pz-login__field {
	margin-bottom: 16px;
	position: relative;
}
.pz-login__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--pz-gray-600);
	margin-bottom: 5px;
}
.pz-login__field label .required {
	color: var(--pz-danger);
}

/* ── Input Wrap ── */
.pz-login__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.pz-login__input-wrap .pz-input {
	height: 46px;
	min-height: 46px;
	padding: 0 14px;
	border: 1.5px solid var(--pz-gray-200);
	border-radius: 10px;
	font-size: 14px;
	color: var(--pz-gray-800);
	background: var(--pz-gray-50);
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.pz-login__input-wrap .pz-input:focus {
	border-color: var(--pz-primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.pz-login__input-wrap .pz-login__input--has-right {
	padding-right: 42px;
}

/* ── Password Toggle ── */
.pz-login__toggle {
	position: absolute;
	right: 12px;
	color: var(--pz-gray-400);
	cursor: pointer;
	display: flex;
	background: none;
	border: none;
	padding: 2px;
	z-index: 1;
}
.pz-login__toggle:hover {
	color: var(--pz-gray-600);
}
.pz-login__toggle .mi {
	font-size: 18px;
}

/* ── Actions Row (Remember + Forgot) ── */
.pz-login__actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: -4px 0 20px;
}
.pz-login__remember {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--pz-gray-600);
	cursor: pointer;
}
.pz-login__remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--pz-primary);
	cursor: pointer;
	border-radius: 4px;
}
.pz-login__forgot {
	font-size: 13px;
	color: var(--pz-primary);
	text-decoration: none;
	font-weight: 500;
}
.pz-login__forgot:hover {
	text-decoration: underline;
}

/* ── Submit Button — with ripple hover ── */
.pz-login__card .pz-btn--primary {
	min-height: 48px;
	border-radius: 10px;
	background: var(--pz-primary);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .2px;
	transition: all .2s;
	position: relative;
	overflow: hidden;
}
.pz-login__card .pz-btn--primary::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255,255,255,.15);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: width .4s, height .4s;
}
.pz-login__card .pz-btn--primary:hover::before {
	width: 300px;
	height: 300px;
}
.pz-login__card .pz-btn--primary:hover {
	background: var(--pz-primary-dark);
	box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.pz-login__card .pz-btn--primary:active {
	transform: scale(.985);
}
.pz-login__card .pz-btn--primary .mi {
	font-size: 18px;
	position: relative;
}

/* ── Password Strength Bar ── */
.pz-login__strength {
	margin-top: 8px;
}
.pz-login__strength-bar {
	display: flex;
	gap: 4px;
}
.pz-login__strength-seg {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--pz-gray-200);
	transition: background .3s;
}
.pz-login__strength-label {
	font-size: 12px;
	margin-top: 4px;
	color: var(--pz-gray-400);
	transition: color .3s;
}

/* ── Agree / Policy ── */
.pz-login__agree {
	margin-bottom: 22px;
	font-size: 13px;
	color: var(--pz-gray-500);
	line-height: 1.45;
	text-align: center;
}
.pz-login__agree a {
	color: var(--pz-primary);
	text-decoration: none;
	font-weight: 500;
}
.pz-login__agree a:hover {
	text-decoration: underline;
}

/* ── Feature Chips ── */
.pz-login__features {
	display: flex;
	gap: 10px;
	margin-top: 24px;
	flex-wrap: wrap;
	justify-content: center;
	position: relative;
	z-index: 1;
}
.pz-login__chip {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid var(--pz-gray-200);
	border-radius: 100px;
	font-size: 12px;
	font-weight: 500;
	color: var(--pz-gray-600);
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.pz-login__chip .mi {
	font-size: 16px;
	color: var(--pz-primary);
}

/* ── Footer ── */
.pz-login__footer {
	margin-top: 20px;
	text-align: center;
	position: relative;
	z-index: 1;
}
.pz-login__footer a {
	font-size: 14px;
	color: var(--pz-primary);
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap .2s, color .2s;
}
.pz-login__footer a:hover {
	gap: 8px;
	color: var(--pz-primary-dark);
}
.pz-login__footer a .mi {
	font-size: 16px;
}

/* ── WooCommerce Notices inside login card ── */
.pz-login .woocommerce-notices-wrapper,
.pz-login .woocommerce-error,
.pz-login .woocommerce-message,
.pz-login .woocommerce-info {
	max-width: 440px;
	width: 100%;
	margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
	.pz-login__panel {
		padding: 0 20px 24px;
	}
}

@media (max-width: 480px) {
	.pz-login {
		padding: 16px 12px;
	}
	.pz-login__card {
		border-radius: 12px;
	}
	.pz-login__heading {
		padding: 0 20px;
	}
	.pz-login__features {
		gap: 8px;
	}
	.pz-login__chip {
		padding: 6px 12px;
		font-size: 11px;
	}
	.pz-login__social {
		flex-direction: column;
	}
	.pz-social-btn {
		font-size: 13px;
		height: 44px;
		min-height: 44px;
	}
}

/* ============================================================
   DESKTOP — wider spacing
   ============================================================ */
@media (min-width: 960px) {
	.pz-login {
		padding: 48px 16px;
	}
	/* Re-enforce input sizing (desktop reduces .pz-input globally) */
	.pz-login__input-wrap .pz-input {
		height: 46px;
		min-height: 46px;
		font-size: 14px;
		padding: 0 14px;
	}
	.pz-login__input-wrap .pz-login__input--has-right {
		padding-right: 42px;
	}
}

/* ============================================================
   PHONE AUTH
   ============================================================ */
.pz-phone-auth {
	margin-bottom: 0;
}
.pz-phone-auth__field {
	margin-bottom: 12px;
}
.pz-phone-auth__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--pz-gray-600);
	margin-bottom: 5px;
}
.pz-phone-auth__input-group {
	display: flex;
	gap: 0;
}
/* Country code dropdown */
.pz-phone-auth__country {
	flex-shrink: 0;
	width: 94px;
	appearance: none;
	-webkit-appearance: none;
	padding: 0 8px 0 10px;
	background: var(--pz-gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 6px center;
	border: 1.5px solid var(--pz-gray-200);
	border-right: none;
	border-radius: 10px 0 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--pz-gray-700);
	cursor: pointer;
	height: 46px;
	min-height: 46px;
	font-family: inherit;
	text-overflow: ellipsis;
}
.pz-phone-auth__country:focus {
	outline: none;
	border-color: var(--pz-primary);
	background-color: #fff;
}
.pz-phone-auth__country:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.pz-phone-auth__input-group .pz-input {
	flex: 1;
	min-width: 0;
	border-radius: 0;
	border-left: none;
	border-right: none;
	height: 46px;
	min-height: 46px;
}
.pz-phone-auth__input-group .pz-btn {
	flex-shrink: 0;
	border-radius: 0 10px 10px 0;
	padding: 0 16px;
	font-size: 13px;
	min-height: 46px;
	white-space: nowrap;
}
.pz-phone-auth__code-wrap {
	margin-top: 12px;
}
.pz-phone-auth__resend {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--pz-primary);
	padding: 0;
}
.pz-phone-auth__resend:disabled {
	color: var(--pz-gray-400);
	cursor: default;
}
.pz-phone-auth__error {
	background: #fef2f2;
	color: #ef4444;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
}
.pz-phone-auth__success {
	background: #d1fae5;
	color: #10b981;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
}

/* Phone auth inside sell page */
.pz-sell .pz-phone-auth__input-group .pz-input {
	min-height: 44px;
}
.pz-sell .pz-phone-auth__input-group .pz-btn {
	min-height: 44px;
}
.pz-sell .pz-phone-auth__country {
	border-width: 1px;
}

@media (max-width: 480px) {
	.pz-phone-auth__input-group {
		flex-wrap: wrap;
	}
	.pz-phone-auth__country {
		border-radius: 10px 0 0 0;
	}
	.pz-phone-auth__input-group .pz-input {
		border-radius: 0 10px 0 0;
		border-right: 1.5px solid var(--pz-gray-200);
	}
	.pz-phone-auth__input-group .pz-btn {
		flex: 1;
		border-radius: 0 0 10px 10px;
		border-top: none;
		margin-top: -1px;
	}
}
