/* ===========================
   JOIN
   Account creation and the find-your-player step. Mobile first: a parent is
   as likely to do this standing at a field as at a desk.
=========================== */

.join-blk {
	padding-top: 130px;
	padding-bottom: 90px;
}

.join-wrap {
	max-width: 560px;
}

.join-lead {
	font-size: 17px;
	line-height: 1.55;
	color: var(--silver);
	margin-bottom: 32px;
}

.join-error {
	background: var(--surface);
	border: 1px solid var(--onyx);
	border-left: 3px solid #e0b74a;
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 26px;
	color: var(--frost);
	font-size: 15px;
}

/* --- Forms --------------------------------------------------------------- */

.join-form,
.join-search {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.join-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.join-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.join-field > span {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--smoke);
}

.join-field > span em {
	font-style: normal;
	opacity: 0.7;
}

.join-field input {
	background: var(--surface);
	border: 1px solid var(--onyx);
	border-radius: 12px;
	color: var(--frost);
	font-family: var(--aeonik);
	font-size: 16px; /* 16px stops iOS zooming the page on focus. */
	padding: 14px 16px;
	width: 100%;
}

.join-field input:focus-visible {
	outline: none;
	border-color: var(--accent);
}

.join-field small {
	font-size: 12px;
	color: var(--smoke);
}

.join-submit {
	background: var(--accent);
	border: 0;
	border-radius: 999px;
	color: var(--void);
	cursor: pointer;
	font-family: var(--aeonik);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	padding: 15px 28px;
	transition: background 0.2s ease;
}

.join-submit:hover,
.join-submit:focus-visible {
	background: var(--frost);
}

.join-alt {
	color: var(--smoke);
	font-size: 14px;
	margin-top: 6px;
}

.join-alt a {
	color: var(--accent);
	font-weight: 600;
}

/* --- Search results ------------------------------------------------------ */

.join-search {
	flex-direction: row;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 30px;
}

.join-search .join-field {
	flex: 1;
}

.join-none {
	background: var(--surface);
	border: 1px solid var(--onyx);
	border-radius: 16px;
	padding: 22px;
	color: var(--silver);
	font-size: 15px;
	line-height: 1.6;
}

.join-none p + p {
	margin-top: 10px;
	color: var(--smoke);
	font-size: 14px;
}

.join-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
}

/* Each row is one decision: is this my child. Name and team facts only,
   which is the least that distinguishes two children with the same name. */
.join-result {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--onyx);
	border-radius: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	padding: 18px 20px;
}

.join-result-who {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.join-result-name {
	color: var(--frost);
	font-size: 17px;
	font-weight: 700;
}

.join-result-meta {
	color: var(--smoke);
	font-family: var(--mono);
	font-size: 12px;
}

.join-claim {
	background: transparent;
	border: 1px solid var(--accent);
	border-radius: 999px;
	color: var(--accent);
	cursor: pointer;
	font-family: var(--aeonik);
	font-size: 14px;
	font-weight: 600;
	padding: 11px 20px;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.join-claim:hover,
.join-claim:focus-visible {
	background: var(--accent);
	color: var(--void);
}

.join-result-state {
	color: var(--smoke);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 600px) {

	.join-blk {
		padding-top: 100px;
		padding-bottom: 60px;
	}

	.join-row {
		grid-template-columns: 1fr;
	}

	/* Stacked, so the search field gets the full width rather than being
	   squeezed next to the button on a phone. */
	.join-search {
		flex-direction: column;
		align-items: stretch;
	}

	.join-result {
		align-items: stretch;
		flex-direction: column;
	}

	.join-claim {
		width: 100%;
	}

}
