/*
Theme component: Client page
Scope: .mast-client-page
*/

.mast-client-page,
.mast-client-page * {
	box-sizing: border-box;
}

.mast-client-page {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: #3f4650;
}

/* ==================================================
   Client ID
================================================== */

.mast-client-access {
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: #fff;
}

.mast-client-access__inner {
	width: min(calc(100% - 48px), 1110px);
	margin: 0 auto;
	padding: 88px 0 120px;
}

.mast-client-id,
.mast-client-id * {
	box-sizing: border-box;
}

.mast-client-id {
	width: min(100%, 720px);
	margin: 0 auto;
	padding: 40px;
	border: 1px solid #dce2e6;
	border-radius: 2px;
	background-color: #f7f8f9;
	color: #444444;
}

.mast-client-id__title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font-family: inherit;
	font-size: clamp(1.65rem, 2.4vw, 2rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.02em;
	box-shadow: none;
}

.mast-client-id__title::before,
.mast-client-id__title::after {
	display: none;
	content: none;
}

.mast-client-id__description {
	margin: 16px 0 0;
	color: #565d66;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.8;
}

.mast-client-id__form {
	margin: 28px 0 0;
}

.mast-client-id__controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: stretch;
}

.mast-client-id__input {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 54px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #ccd1d5;
	border-radius: 2px;
	background-color: #fff;
	color: #222;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	box-shadow: none;
}

.mast-client-id__input:focus {
	border-color: #0068b7;
	outline: 3px solid rgba(0, 104, 183, 0.18);
	outline-offset: 2px;
}

.mast-client-id__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 168px;
	min-height: 54px;
	margin: 0;
	padding: 14px 24px;
	border: 1px solid #0068b7;
	border-radius: 0;
	background-color: #0068b7;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mast-client-id__button:hover,
.mast-client-id__button:focus-visible {
	border-color: #004f8c;
	background-color: #004f8c;
	color: #fff;
}

.mast-client-id__button:focus-visible {
	outline: 2px solid #0068b7;
	outline-offset: 3px;
}

.mast-client-id__help,
.mast-client-id__error {
	margin: 10px 0 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.6;
}

.mast-client-id__help {
	color: #666666;
}

.mast-client-id__error {
	color: #b42318;
}

/* Authenticated Portal only; the entrance and password gate keep their layout. */
.mast-client-portal {
	max-width: 880px;
	margin: 0 auto;
	overflow-wrap: anywhere;
}

.mast-client-portal__section {
	margin-top: 36px;
	padding-top: 24px;
}

/* Keep the blue top border and heading geometry; hide other theme decoration. */
.mast-client-portal :is(h1, h2, h3, h4, h5, h6) {
	border-bottom-color: transparent;
	border-left-color: transparent;
	border-right-color: transparent;
	background: none;
	box-shadow: none;
	text-decoration: none;
}

.mast-client-portal :is(h1, h2, h3, h4, h5, h6)::before,
.mast-client-portal :is(h1, h2, h3, h4, h5, h6)::after {
	display: none;
	content: none;
}

.mast-client-portal__password {
	padding: 16px;
	background: #f7f8f9;
	border: 1px solid #dce2e6;
	font-family: monospace;
	white-space: pre-wrap;
	user-select: all;
}

/* Tablet: 768px-1099px */
@media screen and (max-width: 1099px) {
	.mast-client-access__inner {
		width: min(calc(100% - 40px), 1110px);
	}

	.mast-client-access__inner {
		padding: 80px 0 104px;
	}
}

/* Mobile: 767px and below */
@media screen and (max-width: 767px) {
	.mast-client-access__inner {
		width: 100%;
	}

	.mast-client-access__inner {
		padding: 64px 20px 88px;
	}

	.mast-client-id {
		padding: 28px 20px;
	}

	.mast-client-id__controls {
		grid-template-columns: minmax(0, 1fr);
	}

	.mast-client-id__button {
		width: 100%;
		min-width: 0;
	}
}
