/* ---- Front-end billing portal shell (matches the mockup) ---- */
:root {
	--vpb-navy: #1b2f5e;
	--vpb-navy-dark: #12213f;
	--vpb-blue: #2f6ee6;
	--vpb-gold: #f2c530;
	--vpb-bg: #f3f5f9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.vpb-portal-body,
body.vpb-login-body {
	font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--vpb-bg);
	color: #1d2327;
	font-size: 14px;
}

/* Shell (1.6.0): no top bar or sidebar any more — every screen renders the
   shared header (admin/views/partials/page-header.php) at the top of its
   own content, and phones get the fixed bottom bar from portal.php. */
.vpb-shell { display: block; min-height: 100vh; }
.vpb-main { padding: 0; min-width: 0; min-height: 100vh; }
.vpb-main .vpb-wrap { margin: 0; }

/* Make the WP-admin-styled cards look right outside wp-admin. Colors for
   .button-primary / #vpb-save-print themselves are left to admin.css (the
   orange/blue billing theme) — this just sets the base shape/sizing shared
   by every button in the portal shell. */
.vpb-portal-body .button,
.vpb-portal-body .button-primary,
.vpb-portal-body .button-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 16px; border-radius: 8px; border: 1px solid #ccd0d4;
	background: #f6f7f7; color: #1d2327; font-weight: 600; font-size: 13px; cursor: pointer;
	text-decoration: none;
}
.vpb-portal-body .button-link { background: none; border: none; color: var(--vpb-blue); padding: 6px 0; }
.vpb-portal-body .widefat { width: 100%; border-collapse: collapse; background: #fff; }
.vpb-portal-body .widefat:not(.vpb-items-table) th { text-align: left; background: #f0f4fa; padding: 10px 8px; font-size: 13px; color: var(--vpb-navy); }
.vpb-portal-body .widefat:not(.vpb-items-table) td { padding: 8px; border-top: 1px solid #eef0f3; }
.vpb-portal-body .description { color: #6b7280; font-size: 12px; }

@media (max-width: 900px) {
	.vpb-main .vpb-wrap { max-width: 100%; }
}

/* Login page (1.6.0) — a warm split screen: brand panel on the left, the
   sign-in card on the right; stacks to a single card on phones. */
body.vpb-login-body {
	display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; box-sizing: border-box;
	background: #0b2456;
	background-image:
		radial-gradient(ellipse at 15% 20%, rgba(249, 115, 22, .55) 0, rgba(249, 115, 22, 0) 45%),
		radial-gradient(ellipse at 85% 85%, rgba(251, 191, 36, .35) 0, rgba(251, 191, 36, 0) 50%),
		linear-gradient(160deg, #0b2456 0%, #1b2f5e 60%, #2a3f7a 100%);
}
.vpb-login-stage {
	display: grid; grid-template-columns: 1.05fr 1fr; width: 900px; max-width: 100%;
	border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(3, 12, 40, .45);
}
.vpb-login-side {
	padding: 44px 40px; color: #fff;
	background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
	backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: center;
}
.vpb-login-mark { width: 92px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); margin-bottom: 18px; }
.vpb-login-side h2 { margin: 0 0 8px; font-size: 30px; line-height: 1.1; letter-spacing: .2px; }
.vpb-login-side p { margin: 0 0 22px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.5; max-width: 40ch; }
.vpb-login-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vpb-login-side li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.vpb-login-side li span { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 38px; }
.vpb-login-card { background: #fff; padding: 40px 38px 26px; text-align: center; border-radius: 22px; }
/* the no-access screen uses the card on its own (no split stage) */
.vpb-login-body > .vpb-login-card { width: 420px; max-width: 100%; box-shadow: 0 30px 80px rgba(3,12,40,.45); }
.vpb-login-logo { max-width: 230px; height: auto; margin: 0 auto 14px; display: block; }
.vpb-login-card h1 { font-size: 24px; margin: 6px 0 4px; color: #0b2456; }
.vpb-login-sub { color: #6b7c99; font-size: 14px; margin: 0 0 20px; }
.vpb-login-card label { display: block; text-align: left; font-weight: 700; font-size: 12.5px; margin: 12px 0 6px; color: #294779; }
.vpb-login-field { position: relative; display: flex; align-items: center; }
.vpb-login-ic { position: absolute; left: 13px; font-size: 16px; pointer-events: none; }
.vpb-login-card input[type=text], .vpb-login-card input[type=password] {
	width: 100%; box-sizing: border-box; padding: 12px 42px 12px 42px; border: 1.5px solid #cfd8e6; border-radius: 11px; font-size: 15px; color: #0b2456; background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.vpb-login-card input:focus { outline: none; border-color: #f97316; box-shadow: 0 0 0 4px rgba(249,115,22,.16); }
.vpb-login-eye { position: absolute; right: 8px; width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 16px; opacity: .55; }
.vpb-login-eye.on, .vpb-login-eye:hover { opacity: 1; background: #fef1e6; }
.vpb-login-remember { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; color: #294779 !important; margin-top: 14px !important; }
.vpb-login-remember input { width: 17px; height: 17px; accent-color: #f97316; }
.vpb-login-btn {
	display: block; width: 100%; margin-top: 20px; border: none; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 800; cursor: pointer; color: #fff;
	background: linear-gradient(135deg, #f97316, #ea6a0c); box-shadow: 0 10px 24px rgba(249,115,22,.35); transition: transform .12s, box-shadow .12s;
}
.vpb-login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(249,115,22,.4); }
.vpb-login-btn:active { transform: translateY(0); }
.vpb-login-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 4px; font-weight: 600; }
.vpb-login-foot { margin: 22px 0 0; font-size: 11.5px; color: #8a93a6; }
@media (max-width: 760px) {
	body.vpb-login-body { padding: 14px; align-items: flex-start; }
	.vpb-login-stage { grid-template-columns: 1fr; border-radius: 18px; margin-top: 8px; }
	.vpb-login-side { padding: 22px 22px 18px; flex-direction: row; align-items: center; gap: 14px; }
	.vpb-login-mark { width: 54px; margin: 0; }
	.vpb-login-side h2 { font-size: 20px; margin: 0; }
	.vpb-login-side p, .vpb-login-side ul { display: none; }
	.vpb-login-card { padding: 26px 20px 20px; }
	.vpb-login-logo { max-width: 190px; }
}
@media (prefers-reduced-motion: reduce) { .vpb-login-btn { transition: none; } }

/* Management screens inside the portal */
.vpb-portal-body .vpb-page-title { font-size: 22px; font-weight: 700; color: var(--vpb-navy); margin: 0 0 14px; }
.vpb-portal-body .notice { background: #fff; border-left: 4px solid var(--vpb-blue); padding: 10px 14px; margin: 0 0 14px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.vpb-portal-body .notice p { margin: 0; }
.vpb-portal-body .notice-success { border-left-color: #1e8e3e; }
.vpb-portal-body .notice-error { border-left-color: #c62828; }
.vpb-portal-body .widefat.striped tbody tr:nth-child(odd) { background: #f9fafb; }
.vpb-portal-body .button-small { padding: 5px 10px; font-size: 12px; }
.vpb-portal-body .vpb-card h2 { font-size: 15px; }
.vpb-portal-body .vpb-filter-row select { padding: 7px 8px; border: 1px solid #ccd0d4; border-radius: 4px; background: #fff; }
.vpb-portal-body .vpb-bulk-row select { padding: 7px 8px; border: 1px solid #ccd0d4; border-radius: 4px; background: #fff; }
.vpb-portal-body .vpb-status-select { cursor: pointer; }
.vpb-portal-body .vpb-stat-card { border-color: #e3e6eb; }
.vpb-portal-body .vpb-card input[type=checkbox] { width: auto; margin-right: 6px; }
.vpb-portal-body .vpb-card p.description { margin: 6px 0 10px; }
.vpb-portal-body .vpb-card h2 + p.description { margin-top: -4px; }
.vpb-portal-body code { background: #f0f2f5; padding: 2px 5px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.vpb-portal-body hr { border: 0; border-top: 1px solid #e3e6eb; margin: 16px 0; }

/* "Signing in…" overlay on the login page (mirrors .vpb-busy in admin.css) */
.vpb-busy { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(11, 36, 86, .38); }
.vpb-busy[hidden] { display: none; }
.vpb-busy-box { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 16px 22px; box-shadow: 0 18px 50px rgba(3, 12, 40, .35); font-size: 16px; font-weight: 700; color: #0b2456; }
.vpb-busy-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fbdcc0; border-top-color: #f97316; animation: vpb-spin .8s linear infinite; }
@keyframes vpb-spin { to { transform: rotate(360deg); } }
