/* 2026-08-29 v3.1
 * - Kept the family actions on one row with the full-family action aligned right.
 *
 * 2026-08-29 v3.0
 * - Added stacked next-season family-member application cards and actions.
 * - Removed the inherited section gap from the family panel and aligned its heading row.
 *
 * 2026-08-29 v2.3
 * - Stacked member-card actions with a fixed gap and no inherited button offset.
 *
 * 2026-08-29 v2.2
 * - Positioned member-edit back and cancel actions at the requested corners.
 *
 * 2026-08-29 v2.1
 * - Added the responsive introducee ticket table below the family action.
 *
 * 2026-08-29 v2.0
 * - Added the member details form grid and stacked member actions.
 *
 * 2026-08-29 v1.5
 * - Increased the options alignment selector above the global adjacent-button rule.
 *
 * 2026-08-29 v1.4
 * - Removed the global sibling-button offset from both secondary login actions.
 *
 * 2026-08-29 v1.3
 * - Increased portal text-button specificity above the later global button rules.
 *
 * 2026-08-29 v1.2
 * - Kept text-button spacing compact despite the global button defaults.
 *
 * 2026-08-29 v1.1
 * - Aligned the compact pincode resend action with the other login options.
 *
 * 2026-08-28 v1.0
 * - Added responsive app-style login and family cancellation interface.
 */

.zp-ledenportaal {
	--zp-portal-background: #030334;
	--zp-portal-surface: #0d3e85;
	--zp-portal-accent: #ffcc00;
	--zp-portal-secondary: #00bfed;
	--zp-portal-text: #f2f3ed;
	--zp-portal-muted: #a5a3cb;
	background-color: var(--zp-portal-background);
	color: var(--zp-portal-text);
	min-height: 100vh;
	padding: 130px 30px 80px;
}

.zp-ledenportaal-content {
	margin: 0 auto;
	max-width: 920px;
}

.zp-ledenportaal-panel {
	background-color: var(--zp-portal-surface);
	border-radius: 22px;
	padding: 30px;
}

.zp-ledenportaal-panel[hidden],
.zp-ledenportaal [hidden] {
	display: none !important;
}

.zp-ledenportaal h1,
.zp-ledenportaal p,
.zp-ledenportaal label,
.zp-ledenportaal button {
	color: inherit;
}

.zp-ledenportaal h1 {
	color: var(--zp-portal-accent);
	margin: 0 0 16px;
}

.zp-ledenportaal-panel > p {
	line-height: 1.55;
	max-width: 680px;
}

.zp-ledenportaal-field {
	margin-top: 20px;
}

.zp-ledenportaal-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 8px;
}

.zp-ledenportaal-field input,
.zp-ledenportaal-field select {
	background-color: rgba(3, 3, 52, 0.7);
	border: 1px solid rgba(242, 243, 237, 0.24);
	border-radius: 14px;
	box-sizing: border-box;
	color: var(--zp-portal-text);
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	max-width: 460px;
	padding: 14px;
	width: 100%;
}

.zp-ledenportaal-field input:focus,
.zp-ledenportaal-field select:focus {
	border-color: var(--zp-portal-accent);
	outline: 2px solid rgba(255, 204, 0, 0.28);
	outline-offset: 2px;
}

.zp-ledenportaal .group {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.zp-ledenportaal .button {
	align-items: center;
	background-color: var(--zp-portal-accent);
	border: 0;
	border-radius: 14px;
	color: var(--zp-portal-background);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 9px;
	justify-content: center;
	margin: 0;
	min-height: 48px;
	padding: 12px 18px;
}

.zp-ledenportaal .button.alt {
	background-color: rgba(3, 3, 52, 0.55);
	color: var(--zp-portal-accent);
}

.zp-ledenportaal .button.danger {
	background-color: var(--zp-portal-text);
	color: var(--zp-portal-background);
}

.zp-ledenportaal .button.undo {
	background-color: var(--zp-portal-secondary);
	color: var(--zp-portal-background);
}

.zp-ledenportaal .button:disabled {
	cursor: wait;
	opacity: 0.55;
}

.zp-ledenportaal-status {
	font-size: 14px;
	font-weight: 600;
	margin: 14px 0 0;
	min-height: 20px;
}

.zp-ledenportaal-status.success {
	color: var(--zp-portal-accent);
}

.zp-ledenportaal-status.error {
	color: #ff9b9b;
}

.zp-ledenportaal-resend-status {
	color: var(--zp-portal-muted);
	font-size: 12px;
	margin: 10px 0 0;
}

.zp-ledenportaal .zp-ledenportaal-panel button.zp-ledenportaal-text-button {
	background: none;
	border: 0;
	color: var(--zp-portal-muted) !important;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	margin: 16px 0 0;
	padding: 8px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.zp-ledenportaal-login-options {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
}

.zp-ledenportaal .zp-ledenportaal-panel .zp-ledenportaal-login-options button.zp-ledenportaal-text-button {
	margin-left: 0;
}

.zp-ledenportaal-heading {
	align-items: baseline;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.zp-ledenportaal .zp-ledenportaal-panel .zp-ledenportaal-heading h1,
.zp-ledenportaal .zp-ledenportaal-panel .zp-ledenportaal-heading button.zp-ledenportaal-text-button {
	margin: 0;
}

.zp-ledenportaal-panel[data-ledenportaal-family] {
	display: block;
}

.zp-ledenportaal-status[data-ledenportaal-family-message]:empty {
	display: none;
}

.zp-ledenportaal-family {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 24px;
}

.zp-ledenportaal-member {
	align-items: center;
	background-color: rgba(3, 3, 52, 0.58);
	border-radius: 18px;
	display: grid;
	gap: 16px;
	grid-template-columns: 76px minmax(0, 1fr);
	padding: 18px;
}

.zp-ledenportaal-avatar {
	align-items: center;
	background-color: var(--zp-portal-muted);
	border-radius: 50%;
	color: var(--zp-portal-background);
	display: flex;
	font-size: 22px;
	font-weight: 800;
	height: 76px;
	justify-content: center;
	overflow: hidden;
	width: 76px;
}

.zp-ledenportaal-avatar img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.zp-ledenportaal-member h2 {
	font-size: 20px;
	margin: 0;
}

.zp-ledenportaal-member-meta {
	color: var(--zp-portal-muted) !important;
	font-size: 13px;
	margin: 5px 0 0;
}

.zp-ledenportaal-member-status {
	color: var(--zp-portal-accent) !important;
	font-size: 13px;
	font-weight: 700;
	margin: 10px 0 0;
}

.zp-ledenportaal-member .group {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 12px;
	grid-column: 1 / -1;
	margin-top: 0;
}

.zp-ledenportaal .zp-ledenportaal-member .group > .button {
	margin: 0;
}

.zp-ledenportaal-edit-grid {
	display: grid;
	gap: 0 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zp-ledenportaal .zp-ledenportaal-back-button {
	align-items: center;
	background: none;
	border: 0;
	color: var(--zp-portal-muted) !important;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 8px;
	margin: 0 0 14px;
	padding: 8px 0;
}

.zp-ledenportaal .zp-ledenportaal-edit-actions {
	justify-content: space-between;
}

.zp-ledenportaal .zp-ledenportaal-edit-actions .zp-ledenportaal-text-button {
	margin: 0;
}

.zp-ledenportaal-family-action {
	align-items: center !important;
	border-top: 1px solid rgba(242, 243, 237, 0.2);
	box-sizing: border-box;
	flex-direction: row;
	flex-wrap: nowrap !important;
	gap: 12px;
	justify-content: space-between;
	margin-top: 28px !important;
	padding-top: 24px;
	width: 100%;
}

.zp-ledenportaal-family-action > .button:last-child {
	margin-left: auto;
}

.zp-ledenportaal-applications {
	border-top: 1px solid rgba(242, 243, 237, 0.2);
	margin-top: 28px;
	padding-top: 24px;
}

.zp-ledenportaal-applications h2 {
	color: var(--zp-portal-accent);
	font-size: 24px;
	margin: 0;
}

.zp-ledenportaal-application .zp-ledenportaal-avatar {
	background-color: var(--zp-portal-secondary);
}

.zp-ledenportaal-introducees {
	border-top: 1px solid rgba(242, 243, 237, 0.2);
	margin-top: 28px;
	padding-top: 24px;
}

.zp-ledenportaal-introducees h2 {
	color: var(--zp-portal-accent);
	font-size: 24px;
	margin: 0 0 14px;
}

.zp-ledenportaal-table-wrapper {
	overflow-x: auto;
}

.zp-ledenportaal-introducees table {
	border-collapse: collapse;
	min-width: 620px;
	width: 100%;
}

.zp-ledenportaal-introducees th,
.zp-ledenportaal-introducees td {
	border-bottom: 1px solid rgba(242, 243, 237, 0.16);
	padding: 12px 10px;
	text-align: left;
	vertical-align: top;
}

.zp-ledenportaal-introducees th {
	color: var(--zp-portal-muted);
	font-size: 12px;
	font-weight: 700;
}

.zp-ledenportaal-introducees td {
	font-size: 14px;
}

.zp-ledenportaal-ticket-code {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.zp-ledenportaal-ticket-status {
	font-weight: 700;
}

@media (max-width: 720px) {
	.zp-ledenportaal {
		padding: 120px 15px 55px;
	}

	.zp-ledenportaal-panel {
		border-radius: 18px;
		padding: 22px 18px;
	}

	.zp-ledenportaal-family {
		grid-template-columns: 1fr;
	}

	.zp-ledenportaal-edit-grid {
		grid-template-columns: 1fr;
	}

	.zp-ledenportaal .group .button {
		width: 100%;
	}

	.zp-ledenportaal .zp-ledenportaal-family-action > .button {
		flex: 0 1 auto;
		width: auto;
	}
}
