/*
 * Venue login (index.php), Rally 11 Oct: the same look as the new
 * pivotsports.io (colours, fonts, header, buttons), so a venue arriving from
 * the website's "Venue login" button lands somewhere familiar. Everything is
 * scoped to .pvl so no other web app page changes.
 */
.pvl {
	--ink: #0b1b3f; --ink-2: #33415f; --muted: #5b6885; --line: #e2e7f1;
	--blue: #1140c8; --blue-dark: #0a2d78; --blue-soft: #e8eeff;
	--pink: #e8215a; --pink-dark: #c4164a; --red: #d92d20; --red-dark: #b42318;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Manrope", "Inter", system-ui, sans-serif;
	position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column;
	background: radial-gradient(900px 480px at 85% 10%, #e3ebff 0%, rgba(227,235,255,0) 70%), linear-gradient(180deg, #f4f6fb 0%, #ffffff 100%);
	color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.pvl *, .pvl *::before, .pvl *::after { box-sizing: border-box; }
.pvl a { color: var(--blue); }
.pvl h1, .pvl h2 { font-family: var(--font-head); color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-transform: none; }
.pvl-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* Header, as on the website */
.pvl-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pvl-header .pvl-wrap { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.pvl-brand img { height: 40px; width: auto; display: block; }
.pvl-nav { display: flex; gap: 22px; margin-right: auto; }
.pvl-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.pvl-nav a:hover { color: var(--blue); }
.pvl-cta { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.pvl-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; text-decoration: none; padding: 11px 20px; border-radius: 999px; color: #fff !important; white-space: nowrap; }
.pvl-btn-players { background: var(--blue); }
.pvl-btn-players:hover { background: var(--blue-dark); }
.pvl-btn-primary { background: var(--pink); }
.pvl-btn-primary:hover { background: var(--pink-dark); }

/* Two columns: the welcome on the left, the sign-in card on the right */
.pvl-main { flex: 1; padding: 64px 0 72px; }
.pvl-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pvl-grid > * { min-width: 0; }
.pvl-eyebrow { font-family: var(--font-head); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.pvl-intro h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 800; }
.pvl-intro h1 span { color: var(--pink); }
.pvl-lede { font-size: 1.18rem; color: var(--ink-2); margin: 18px 0 0; max-width: 52ch; }
.pvl-ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.pvl-ticks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.pvl-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231140c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pvl-small { margin-top: 26px; color: var(--muted); font-size: 0.95rem; }

.pvl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(11,27,63,0.06), 0 18px 48px rgba(11,27,63,0.12); padding: 36px 34px; }
.pvl-card .pvl-title { font-size: 1.75rem; font-weight: 800; }
.pvl-card .pvl-sub { color: var(--muted); margin: 8px 0 22px; font-size: 0.98rem; }
.pvl-card .alert { border-radius: 10px; margin-bottom: 16px; }

/* The existing form fields, restyled */
.pvl-card .login_member_form .exe_row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.pvl-card .login_member_form .exe_row:empty { display: none; }
.pvl-card .login_member_form [class*="exe_col"] { flex: 1 1 0; min-width: 0; width: auto; float: none; padding: 0; margin: 0; }
.pvl-card .login_member_form .exe_col12 { flex-basis: 100%; }
.pvl-card .login_member_form [class*="exe_col"] > input + input,
.pvl-card .login_member_form [class*="exe_col"] > select + input { margin-top: 12px; }
.pvl-card .login_member_form p, .pvl-card .login_member_form small { font-size: 0.88rem; color: var(--muted); line-height: 1.45; margin: 6px 0 0; }
/* The theme hides real checkboxes (it styles labels instead); show the T&C one plainly. */
.pvl-card input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; position: static; opacity: 1; visibility: visible; display: inline-block; width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--blue); }
.pvl-card .login_member_form input[type="text"],
.pvl-card .login_member_form input[type="email"],
.pvl-card .login_member_form input[type="password"],
.pvl-card .login_member_form select {
	width: 100%; height: 50px; padding: 0 16px; font: 500 1rem var(--font); color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: 10px; box-shadow: none; margin: 0;
}
.pvl-card .login_member_form input:focus,
.pvl-card .login_member_form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.pvl-card .login_member_form label { color: var(--ink-2); font-size: 0.92rem; }
.pvl-forgot { text-align: right; margin: -4px 0 16px; font-size: 0.92rem; }
.pvl-forgot a { font-weight: 600; text-decoration: none; }
.pvl-card input[type="submit"].button {
	width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--red); color: #fff;
	font: 800 1.05rem var(--font-head); cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.pvl-card input[type="submit"].button:hover { background: var(--red-dark); }
.pvl-register { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }
.pvl-register a { font-weight: 700; }

.pvl-footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; font-size: 0.9rem; color: var(--muted); }
.pvl-footer .pvl-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pvl-footer a { color: var(--muted); margin-left: 14px; text-decoration: none; }
.pvl-footer a:hover { color: var(--blue); }

@media (max-width: 900px) {
	.pvl-nav { display: none; }
	.pvl-grid { grid-template-columns: 1fr; gap: 32px; }
	.pvl-main { padding: 32px 0 48px; }
	.pvl-card { order: -1; }
	.pvl-ticks { display: none; }
}
@media (max-width: 560px) {
	.pvl-wrap { padding: 0 16px; }
	.pvl-header .pvl-wrap { gap: 12px; }
	.pvl-brand img { height: 32px; }
	.pvl-btn { padding: 9px 14px; font-size: 0.85rem; }
	.pvl-btn-players svg { display: none; }
	.pvl-btn-primary { display: none; }
	.pvl-card { padding: 26px 20px; }
	.pvl-intro h1 { font-size: 2rem; }
}
