/* Sign in / create account / confirm email (templates/auth-page.php) */
.pm-auth {
	display: grid;
	place-items: start center;
	padding: 48px 0 72px;
}
.pm-auth-card {
	width: min(480px, 100%);
	background: linear-gradient(180deg, var(--pm-card-2), var(--pm-card));
	border: 1px solid rgba(237, 177, 24, .22);
	border-radius: 24px;
	padding: 28px 28px 30px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.pm-auth-note {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(233, 140, 0, .1);
	border: 1px solid rgba(233, 140, 0, .35);
	color: var(--pm-text);
	font-size: 14.5px;
	line-height: 1.7;
}

/* tabs */
.pm-auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 5px;
	margin-bottom: 20px;
	background: #0b0b10;
	border: 1px solid var(--pm-line-2);
	border-radius: 999px;
}
.pm-auth-tabs a {
	display: block;
	text-align: center;
	padding: 11px 8px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 15px;
	color: var(--pm-muted) !important;
	text-decoration: none;
	transition: background .3s var(--pm-ease), color .3s var(--pm-ease);
}
.pm-auth-tabs a[aria-selected="true"] { background: var(--pm-grad); color: #120a00 !important; }
.pm-auth-tabs a:focus-visible { outline: 2px solid var(--pm-gold); outline-offset: 2px; }

/* messages */
.pm-auth-msg { margin: 0 0 16px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.6; }
.pm-auth-msg.is-error { background: rgba(255, 61, 79, .1); border: 1px solid rgba(255, 61, 79, .45); color: #ffb3bb; }
.pm-auth-msg.is-ok { background: rgba(30, 209, 138, .1); border: 1px solid rgba(30, 209, 138, .45); color: #9df0cc; }

/* Google + divider */
.pm-auth-google { display: grid; justify-items: center; gap: 8px; min-height: 44px; }
.pm-auth-google > div { width: 100%; display: flex; justify-content: center; }
.pm-auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--pm-dim); font-size: 13px; }
.pm-auth-or::before, .pm-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--pm-line-2); }

/* form */
.pm-auth-form { display: grid; gap: 16px; }
.pm-auth-form[hidden] { display: none; }
.pm-field { display: grid; gap: 7px; }
.pm-field > span:first-child { font-weight: 700; font-size: 14.5px; color: var(--pm-text); }
.pm-field small { color: var(--pm-muted); font-size: 12.5px; line-height: 1.6; }
.pm-theme .pm-auth input[type="text"],
.pm-theme .pm-auth input[type="email"],
.pm-theme .pm-auth input[type="password"] {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	background: #0d0d12 !important;
	color: var(--pm-text) !important;
	border: 1px solid var(--pm-line-2) !important;
	border-radius: 12px !important;
	font: 500 16px/1.4 var(--pm-font); /* 16px stops iPhone zooming in */
	box-shadow: none;
	transition: border-color .25s, box-shadow .25s;
}
.pm-theme .pm-auth input:focus { outline: none; border-color: var(--pm-gold); box-shadow: 0 0 0 3px rgba(237, 177, 24, .18); }
.pm-auth input[dir="ltr"] { text-align: left; }
.pm-pass { position: relative; display: block; }
.pm-pass input { padding-inline-end: 50px !important; }
html[dir="rtl"] .pm-pass input { padding-right: 14px !important; padding-left: 50px !important; }
.pm-pass-toggle {
	position: absolute;
	top: 50%;
	inset-inline-end: 6px;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: transparent !important;
	border: 0 !important;
	color: var(--pm-muted) !important;
	cursor: pointer;
	padding: 0 !important;
}
html[dir="rtl"] .pm-pass-toggle { inset-inline-end: auto; left: 6px; right: auto; }
.pm-pass-toggle svg { width: 20px; height: 20px; }
.pm-pass-toggle.is-on { color: var(--pm-gold) !important; }
.pm-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pm-check { display: inline-flex; align-items: center; gap: 8px; color: var(--pm-text); cursor: pointer; }
.pm-check input { width: 18px; height: 18px; accent-color: var(--pm-orange); }
.pm-auth-submit { width: 100%; justify-content: center; min-height: 54px; font-size: 16px; }
.pm-auth-link,
.pm-auth a:not(.pm-btn):not([role="tab"]) { color: var(--pm-gold) !important; font-weight: 700; text-decoration: none; }
.pm-theme .pm-auth button.pm-auth-link { background: none !important; border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; min-height: 0 !important; color: var(--pm-gold) !important; font: 700 14.5px/1.6 var(--pm-font) !important; cursor: pointer; }
.pm-theme .pm-auth button.pm-auth-link:disabled { color: var(--pm-dim) !important; cursor: default; }
.pm-auth-small { margin: 0; color: var(--pm-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.pm-auth-switch { margin: 0; text-align: center; color: var(--pm-muted); font-size: 14.5px; }
/* hidden anti-bot field: clipped in place (an off-screen offset would widen RTL pages) */
.pm-auth-card { position: relative; }

/* verify step */
.pm-auth-verify { text-align: center; }
.pm-auth-icon {
	width: 68px;
	height: 68px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	border-radius: 20px;
	background: rgba(233, 140, 0, .12);
	border: 1px solid rgba(233, 140, 0, .4);
	color: var(--pm-gold);
}
.pm-auth-icon svg { width: 34px; height: 34px; }
.pm-auth-title { margin: 0 0 10px; font-size: clamp(24px, 6vw, 30px); font-weight: 900; color: var(--pm-text); }
.pm-auth-lead { margin: 0 0 14px; color: var(--pm-muted); line-height: 1.8; overflow-wrap: anywhere; }
.pm-auth-lead strong { color: var(--pm-text); }
.pm-auth-steps {
	margin: 0 0 18px;
	padding: 14px 16px;
	padding-inline-start: 34px;
	text-align: start;
	background: #0b0b10;
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	color: var(--pm-text);
	font-size: 14.5px;
	line-height: 1.8;
}
.pm-auth-verify .pm-auth-form { text-align: start; }
.pm-auth input.pm-code {
	text-align: center !important;
	font: 700 28px/1 var(--pm-font-num) !important;
	letter-spacing: 10px;
	min-height: 62px;
}
.pm-auth-help { display: grid; gap: 10px; justify-items: center; margin-top: 18px; color: var(--pm-muted); font-size: 14px; line-height: 1.7; }
.pm-auth-help p, .pm-auth-help form { margin: 0; }

@media (max-width: 520px) {
	.pm-auth { padding: 24px 0 48px; }
	.pm-auth-card { padding: 20px 16px 24px; border-radius: 20px; }
	.pm-auth-tabs a { font-size: 14px; padding: 10px 4px; }
}

/* browser autofill keeps the dark field */
.pm-auth input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #0d0d12 inset !important; -webkit-text-fill-color: var(--pm-text) !important; caret-color: var(--pm-text); }
/* phones: no floating WhatsApp over the form */
@media (max-width: 860px) { body.pm-auth-body .pm-wa { display: none; } }

/* "change email" on the verify step */
.pm-auth-change { margin-top: 18px; border-top: 1px solid var(--pm-line); padding-top: 14px; text-align: start; }
.pm-auth-change summary { cursor: pointer; color: var(--pm-gold); font-weight: 700; font-size: 14.5px; list-style: none; text-align: center; }
.pm-auth-change summary::-webkit-details-marker { display: none; }
.pm-auth-change[open] summary { margin-bottom: 14px; }
.pm-auth-expire { margin-top: 16px; font-size: 12.5px; }/* long button labels wrap instead of pushing the card wider than the phone screen */
.pm-auth .pm-auth-submit { white-space: normal; text-align: center; line-height: 1.35; }
.pm-auth-change .pm-auth-submit { min-height: 48px; font-size: 15px; padding-inline: 16px; }
.pm-auth-card { min-width: 0; }
.pm-auth-card * { min-width: 0; }.pm-auth .pm-auth-submit { box-sizing: border-box; max-width: 100%; }
