/**
 * ResourcePort - sign-in page.
 *
 * Builds on library.css: the page's root carries .resourceport and
 * .resourceport--look-modern, so it shares the library's tokens, buttons and
 * visually hidden text. Rules start with .resourceport so they win over the
 * theme's paragraph, heading and form styles.
 *
 * Mobile first. The shell measures the width the page has; wider layouts
 * query it, and the form grid queries the panel it sits in.
 */

:where(.resourceport-auth) {
	--resourceport-auth-intro: #111111;
	--resourceport-auth-intro-text: #ffffff;
	--resourceport-auth-error: #b3261e;
}

.resourceport.resourceport-auth {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--resourceport-color-line);
	border-radius: 18px;
	background: var(--resourceport-color-panel);
	color: var(--resourceport-color-panel-text);
}

/* Full width runs from edge to edge: no rounded corners, no side lines. */
.alignfull > .resourceport-shell > .resourceport.resourceport-auth {
	border-inline: 0;
	border-radius: 0;
}

/* --------------------------------------------------------- Introduction */

.resourceport .resourceport-auth__intro {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 12px;
	padding: 28px 24px;
	background: var(--resourceport-auth-intro);
	color: var(--resourceport-auth-intro-text);
}

/* The accent color, or white where a dark accent would not read on the panel. */
.resourceport .resourceport-auth__eyebrow {
	margin: 0;
	color: var(--resourceport-auth-eyebrow, var(--resourceport-color-highlight));
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.resourceport .resourceport-auth__headline {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.12;
	text-transform: none;
}

.resourceport .resourceport-auth__text {
	margin: 0;
	color: color-mix(in srgb, currentColor 78%, transparent);
	font-size: 1rem;
	line-height: 1.55;
}

.resourceport .resourceport-auth__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 0;
}

.resourceport .resourceport-auth__points li {
	padding: 5px 12px;
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

/* ---------------------------------------------------------------- Panel */

.resourceport .resourceport-auth__panel {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px 20px 28px;
}

.resourceport .resourceport-auth__tabs {
	width: 100%;
	max-width: 520px;
}

.resourceport .resourceport-auth__tabs ul {
	display: flex;
	gap: 28px;
	margin: 0 0 24px;
	padding: 0;
	box-shadow: inset 0 -1px 0 var(--resourceport-color-line);
}

.resourceport .resourceport-auth__tab {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 2px solid transparent;
	color: inherit;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}

.resourceport .resourceport-auth__tab:hover {
	border-bottom-color: var(--resourceport-color-code);
	color: inherit;
}

.resourceport .resourceport-auth__tab[aria-current="page"] {
	border-bottom-color: currentColor;
	font-weight: 700;
}

.resourceport .resourceport-auth__pane {
	width: 100%;
	max-width: 520px;
}

.resourceport .resourceport-auth__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-transform: none;
}

/* Focus lands on the heading after switching tabs, for screen readers; it is
   not a control, so it gets no ring. */
.resourceport .resourceport-auth__title:focus {
	outline: none;
}

.resourceport .resourceport-auth__lead {
	margin: 8px 0 22px;
	color: var(--resourceport-color-quiet);
	font-size: 1rem;
	line-height: 1.55;
}

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

.resourceport .resourceport-auth__form {
	display: grid;
	gap: 16px;
	margin: 0;
}

.resourceport .resourceport-auth__grid {
	display: grid;
	align-items: start;
	gap: 16px;
}

.resourceport .resourceport-auth__field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.resourceport .resourceport-auth__field label {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
}

.resourceport .resourceport-auth__optional {
	color: var(--resourceport-color-muted);
	font-weight: 400;
}

.resourceport .resourceport-auth__input {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--resourceport-color-border);
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	/* 16px or more stops iOS Safari from zooming into the field. */
	font-size: max(1rem, 16px);
	line-height: 1.4;
}

.resourceport textarea.resourceport-auth__input {
	min-height: 112px;
	resize: vertical;
}

.resourceport .resourceport-auth__input:focus {
	border-color: currentColor;
	outline: none;
	box-shadow: 0 0 0 1px currentColor;
}

.resourceport .resourceport-auth__field.is-invalid .resourceport-auth__input {
	border-color: var(--resourceport-auth-error);
}

.resourceport .resourceport-auth__error {
	margin: 0;
	color: var(--resourceport-auth-error);
	font-size: 0.875rem;
	line-height: 1.4;
}

.resourceport .resourceport-auth__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 0.9375rem;
}

.resourceport .resourceport-auth__options a,
.resourceport .resourceport-auth__switch a,
.resourceport .resourceport-auth__consent a,
.resourceport .resourceport-auth__notice a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.resourceport .resourceport-auth__check {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.resourceport .resourceport-auth__check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--resourceport-color-accent);
}

.resourceport .resourceport-auth__consent {
	display: grid;
	gap: 6px;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.resourceport .resourceport-auth__consent.is-invalid .resourceport-auth__check {
	color: var(--resourceport-auth-error);
}

.resourceport .resourceport-auth__submit {
	width: 100%;
	min-height: 52px;
	margin-top: 4px;
	font-size: 1.0625rem;
}

.resourceport .resourceport-auth__submit[disabled] {
	cursor: progress;
	opacity: 0.6;
}

.resourceport .resourceport-auth__switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 4px 0 0;
	font-size: 0.9375rem;
}

/* The bot check, when the site uses one: room for the widget, so the
   button below does not jump when it appears. */
.resourceport .resourceport-auth__captcha {
	min-height: 65px;
}

/* A field people never see; bots fill it in. Clipped in place, so it can
   never widen the page, in right-to-left languages either. */
.resourceport .resourceport-auth__trap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------ Messages, states */

.resourceport .resourceport-auth__notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--resourceport-auth-error);
	border-left-width: 4px;
	border-radius: 10px;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.resourceport .resourceport-auth__notice ul {
	margin: 8px 0 0;
	padding-left: 18px;
	list-style: disc;
}

.resourceport .resourceport-auth__done {
	display: grid;
	justify-items: start;
}

.resourceport .resourceport-auth__done .resourceport-auth__switch {
	justify-content: flex-start;
}

.resourceport .resourceport-auth__badge {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--resourceport-color-highlight);
	color: var(--resourceport-color-highlight-ink);
}

.resourceport .resourceport-auth__badge .resourceport-icon {
	width: 24px;
	height: 24px;
	stroke-width: 2;
}

.resourceport .resourceport-auth__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.resourceport .resourceport-auth__fine {
	margin: 14px 0 0;
	color: var(--resourceport-color-muted);
	font-size: 0.875rem;
}

/* The weekly email, below the signed-in actions. */
.resourceport .resourceport-auth__digest {
	display: grid;
	justify-items: start;
	gap: 10px;
	width: 100%;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--resourceport-color-line);
}

.resourceport .resourceport-auth__subtitle {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.3;
	text-transform: none;
}

.resourceport .resourceport-auth__digest .resourceport-auth__fine,
.resourceport .resourceport-auth__digest .resourceport-auth__notice,
.resourceport .resourceport-auth__digest-form {
	margin: 0;
}

.resourceport .resourceport-auth__status {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* ------------------------------------------------------------- Wider */

/* Two fields side by side once the panel has room. */
@container (min-width: 460px) {
	.resourceport .resourceport-auth__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* The introduction beside the forms. */
@container (min-width: 820px) {
	.resourceport.resourceport-auth {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		min-height: 620px;
	}

	.resourceport .resourceport-auth__intro {
		gap: 16px;
		padding: 48px;
	}

	.resourceport .resourceport-auth__headline {
		font-size: 2.5rem;
	}

	.resourceport .resourceport-auth__text {
		font-size: 1.125rem;
	}

	.resourceport .resourceport-auth__panel {
		justify-content: center;
		padding: 48px 56px;
	}
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.resourceport .resourceport-auth__text {
		color: #d6d6d6;
	}

	.resourceport .resourceport-auth__points li {
		border-color: #555555;
	}
}
