/* ─────────────────────────────────────────────────────────────────────────────
   PIMS — estilos partilhados das páginas de autenticação (login / forgotten)
   Tema alinhado com https://holiday-rental-eight.vercel.app/ · mobile-first
   ───────────────────────────────────────────────────────────────────────────── */

:root {
	--blue: #4076ff;
	--blue-dark: #1863dc;
	--purple: #bd32d3;
	--cyan: #1ef4ea;
	--ink: #212121;
	--muted: #4e4b66;
	--line: #e6e8f0;
	--white: #fff;
	--grad: linear-gradient(75deg, #bd32d3 0%, #4076ff 100%);
	--page-grad: linear-gradient(135deg, #bd32d3 0%, #4076ff 100%);
	--radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

body.pims-auth-page {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #fff;
	background: var(--page-grad) fixed;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
}

.pims-site { display: flex; flex-direction: column; flex: 1; }
a { color: #fff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar transparente sobre o gradiente */
.pims-header { background: transparent; }
.pims-header-inner { max-width: 1140px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pims-brand { display: flex; align-items: center; }
.pims-brand img { height: 42px; width: auto; display: block; }
.pims-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pims-lang { position: relative; }
.pims-lang-cb { display: none; }
.pims-lang-toggle { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 500; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap; }
.pims-lang-toggle:hover { background: rgba(255, 255, 255, .15); }
.pims-lang-menu { list-style: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; min-width: 175px; border-radius: 12px; box-shadow: 0 20px 40px rgba(20, 10, 60, .3); padding: 6px; display: none; z-index: 30; margin: 0; }
.pims-lang:hover .pims-lang-menu, .pims-lang-cb:checked ~ .pims-lang-menu { display: block; }
.pims-lang-menu li { margin: 0; }
.pims-lang-menu a { color: var(--ink); display: block; padding: 11px 14px; border-radius: 8px; white-space: nowrap; }
.pims-lang-menu a:hover { background: #f1f3ff; text-decoration: none; }

/* Main + formas decorativas subtis */
.pims-main { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; }
.pims-main::before { content: ""; position: absolute; width: 230px; height: 230px; border: 2px solid rgba(255, 255, 255, .12); border-radius: 50%; left: -70px; bottom: 40px; pointer-events: none; }
.pims-main::after { content: ""; position: absolute; width: 0; height: 0; border-left: 70px solid transparent; border-right: 70px solid transparent; border-bottom: 120px solid rgba(255, 255, 255, .07); left: 7%; top: 70px; transform: rotate(8deg); pointer-events: none; }

.pims-hero { text-align: center; padding: 52px 20px 8px; position: relative; z-index: 1; }
.pims-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); margin: 0 0 10px; }
.page-title { font-size: 40px; font-weight: 700; margin: 0; color: #fff; letter-spacing: -.5px; line-height: 1.1; }
.page-title .accent { color: var(--cyan); }
.pims-announce { display: inline-flex; align-items: center; gap: 10px; margin: 20px auto 0; padding: 10px 20px; background: rgba(30, 244, 234, .12); border: 1px solid rgba(30, 244, 234, .55); border-radius: 999px; font-weight: 600; font-size: 14px; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); max-width: 100%; cursor: pointer; text-decoration: none; animation: pimsGlow 2.6s ease-in-out infinite; transition: transform .15s, background .15s; }
.pims-announce:hover { text-decoration: none; transform: translateY(-1px); background: rgba(30, 244, 234, .2); }
.pims-announce .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(30, 244, 234, .25); flex: 0 0 auto; }
.pims-announce .down { font-size: 15px; line-height: 1; color: var(--cyan); animation: pimsBob 1.6s ease-in-out infinite; }
@keyframes pimsGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 244, 234, 0); } 50% { box-shadow: 0 0 22px 2px rgba(30, 244, 234, .38); } }
@keyframes pimsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .pims-announce, .pims-announce .down { animation: none; } }

.auth-wrap { padding: 8px 20px 56px; max-width: 520px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.form-title { text-align: center; font-size: 18px; font-weight: 500; color: rgba(255, 255, 255, .9); margin: 16px 0 20px; }

/* Cartão branco legível */
.loginbox { background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px rgba(20, 10, 60, .35); padding: 30px; max-width: 460px; margin: 0 auto; color: var(--ink); }
.loginbox h3 { margin: 0 0 6px; color: var(--muted); font-weight: 600; }
.loginbox table { width: 100%; border-collapse: collapse; }
.loginbox td { padding: 7px 0; vertical-align: top; }
.loginbox h3.elementor-heading-title { color: var(--ink); font-size: 16px; }
.loginbox a { color: var(--blue); }
.loginbox p { overflow-wrap: break-word; }
label { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
input[type=text], input[type=password], input[type=email], select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
	font-size: 16px; font-family: inherit; color: var(--ink); background: #fff;
	transition: border .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 118, 255, .18); }
.wpcf7-submit {
	display: inline-block; width: 100%; max-width: 100%; background: var(--grad); color: #fff; border: none; cursor: pointer;
	padding: 14px 30px; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: inherit; margin-top: 8px;
	box-shadow: 0 10px 24px rgba(189, 50, 211, .3); transition: transform .05s, box-shadow .15s, filter .15s;
}
.wpcf7-submit:hover { filter: brightness(1.05); box-shadow: 0 12px 28px rgba(64, 118, 255, .35); }
.wpcf7-submit:active { transform: translateY(1px); }
.wpcf7-spinner { display: none !important; }
.err { color: #e40014; font-weight: 600; margin: 6px 0; }
.login { padding-top: 6px; }

/* Teaser do produto (banda escura) — só no login */
.pims-teaser-band { position: relative; z-index: 1; background: #141327; border-top: 1px solid rgba(255, 255, 255, .08); }
.pims-teaser { max-width: 880px; margin: 0 auto; padding: 66px 20px; text-align: center; }
.teaser-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; color: #6ea0ff; margin: 0 0 16px; }
.pims-teaser h2 { font-size: 40px; line-height: 1.12; font-weight: 700; margin: 0 0 18px; color: #fff; letter-spacing: -.5px; }
.pims-teaser h2 .accent { background: linear-gradient(90deg, #8a7bff 0%, #bd32d3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pims-teaser .lead { max-width: 680px; margin: 0 auto; color: rgba(255, 255, 255, .7); font-size: 17px; line-height: 1.6; }
.teaser-tag { display: inline-block; margin: 28px 0 0; padding: 8px 18px; border-radius: 999px; background: rgba(30, 244, 234, .12); border: 1px solid rgba(30, 244, 234, .45); color: #bff9f6; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.teaser-foot { margin: 22px auto 0; max-width: 640px; color: rgba(255, 255, 255, .45); font-size: 13px; }

/* Footer transparente */
.pims-footer { background: transparent; margin-top: auto; position: relative; z-index: 1; }
.pims-copy { max-width: 1140px; margin: 0 auto; text-align: center; padding: 22px 20px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.pims-copy a { color: #fff; text-decoration: underline; }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
	.page-title { font-size: 34px; }
	.pims-teaser h2 { font-size: 32px; }
}

/* ── Telemóvel ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.pims-header-inner { padding: 14px 16px; gap: 10px; }
	.pims-brand img { height: 34px; }
	.pims-nav { gap: 6px; }

	/* idiomas: pílulas em linha (sem hover/dropdown no touch) */
	.pims-lang-toggle { padding: 7px 14px; font-size: 14px; }

	.pims-main::before, .pims-main::after { display: none; }

	.pims-hero { padding: 34px 16px 6px; }
	.pims-eyebrow { font-size: 12px; letter-spacing: 2px; }
	.page-title { font-size: 27px; }
	.pims-announce { font-size: 13px; padding: 8px 14px; }

	.auth-wrap { padding: 6px 16px 44px; }
	.form-title { font-size: 16px; margin: 14px 0 16px; }
	.loginbox { padding: 22px 18px; border-radius: 16px; }

	.pims-teaser { padding: 44px 18px; }
	.teaser-eyebrow { letter-spacing: 2px; }
	.pims-teaser h2 { font-size: 25px; }
	.pims-teaser .lead { font-size: 15px; }

	.pims-copy { padding: 20px 16px; }
}

@media (max-width: 380px) {
	.page-title { font-size: 24px; }
	.loginbox { padding: 20px 15px; }
	.pims-teaser h2 { font-size: 22px; }
}
