/**
 * RegistrationGuard front-end form styles.
 * File: modules/registration-guard/assets/css/registration-guard-forms.css
 *
 * ── Why this does not use the plugin's design tokens ────────────────────────
 *
 * These forms render on the public site, inside whatever theme is running.
 * tokens.css is an admin stylesheet and is not loaded here, so the values below
 * are declared locally on .occ-rg-form-wrap instead.
 *
 * Declaring them as custom properties rather than inline values is what makes
 * the form themeable: a child theme can restate any of them in its own
 * stylesheet and the whole form follows, without overriding rule by rule.
 *
 * The palette is deliberately restrained. This form appears inside somebody
 * else's design, so it borrows the theme's font, inherits text colour where it
 * can, and spends its own colour only on state: an error, a warning, a success.
 */

.occ-rg-form-wrap {
	--occ-rg-accent: #a41e32;
	--occ-rg-accent-hover: #7d1626;
	--occ-rg-accent-tint: #faeef0;
	--occ-rg-on-accent: #fff;

	--occ-rg-success: #1f7a3d;
	--occ-rg-success-tint: #eaf6ed;
	--occ-rg-warning: #a76a00;
	--occ-rg-warning-tint: #fdf4e3;
	--occ-rg-danger: #d13438;
	--occ-rg-danger-tint: #fdeceb;

	--occ-rg-border: #d8dde3;
	--occ-rg-border-strong: #b6bec7;
	--occ-rg-muted: #6b7280;
	--occ-rg-surface: #f7f8f9;

	--occ-rg-radius: 10px;
	--occ-rg-gap: 18px;

	box-sizing: border-box;
	max-width: 560px;
	margin: 0 auto;

	/* The theme's font, deliberately. A registration form that announces itself
	   with different type reads as a third-party widget bolted on. */
	font-family: inherit;
}

.occ-rg-form-wrap *,
.occ-rg-form-wrap *::before,
.occ-rg-form-wrap *::after {
	box-sizing: inherit;
}

/* A combined form carrying role tabs needs more room than a single column. */
.occ-rg-register-form {
	max-width: 680px;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.occ-rg-form-wrap .is-hidden {
	display: none !important;
}

/*
 * A succeeded card hides its form rather than losing it. KI-023, KI-024.
 *
 * showFormSuccess() used to call .empty(). That destroyed the heading the
 * dialog names itself after, and left no route back to a usable form short of
 * a page reload. It also destroyed the direct bindings initChips() and the
 * resend link attach to their own elements, which is why putting saved markup
 * back would not have worked: the markup returns, the handlers do not.
 *
 * Hiding costs one class and destroys nothing, so restoring is removing the
 * class and the panel.
 *
 * The success panel and the resend offer are the two children that must stay
 * visible. The offer is inserted as a sibling of the panel rather than inside
 * it, so a rule naming only the panel would hide the link a pending registrant
 * needs.
 */
.occ-rg-form-wrap.is-succeeded > *:not(.occ-rg-success-panel):not(.occ-rg-resend-offer) {
	display: none;
}

.occ-rg-form-wrap .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Card
   ========================================================================== */

.occ-rg-form-header {
	padding: 28px 28px 20px;
	text-align: center;
}

.occ-rg-form-header .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--occ-rg-accent-tint);
	color: var(--occ-rg-accent);
	font-size: 26px;
}

.occ-rg-form-header h2 {
	margin: 0 0 6px;
	font-size: 1.5em;
	line-height: 1.25;
}

.occ-rg-form-header p {
	margin: 0;
	color: var(--occ-rg-muted);
	font-size: .95em;
}

.occ-rg-form-body {
	padding: 0 28px 28px;
}

.occ-rg-form-body--centred {
	text-align: center;
}

.occ-rg-form-footer {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--occ-rg-border);
	text-align: center;
	font-size: .95em;
}

.occ-rg-form-footer p {
	margin: 0;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.occ-rg-alert {
	display: none;
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px solid var(--occ-rg-danger);
	border-radius: var(--occ-rg-radius);
	background: var(--occ-rg-danger-tint);
	color: var(--occ-rg-danger);
	font-size: .95em;
}

/* Shown by the script, which sets the state class alongside. */
.occ-rg-alert.is-visible {
	display: block;
}

.occ-rg-alert.is-success {
	border-color: var(--occ-rg-success);
	background: var(--occ-rg-success-tint);
	color: var(--occ-rg-success);
}

/* ==========================================================================
   The composed success panel

   Replaces the card's contents once a submission has succeeded. R-007, D-155.

   Ported from OSS CE Modules 3.9.1 rather than invented, but not copied: the
   green is taken from the variables above instead of the hardcoded #2e9e5b the
   original carried, and the dialog-level `is-success` class the original also
   set is deliberately absent. That existed only to rescue a white close button
   sitting on a burgundy header, and R-001 already resolved that in this plugin.
   ========================================================================== */

/*
 * No background is declared. The card behind this already supplies one, and on
 * the standalone shortcode page it is not the same surface as in the modal.
 * Declaring white here would be right in one place and wrong in the other.
 */
.occ-rg-success-panel {
	padding: 44px 32px 40px;
	text-align: center;
}

/*
 * b10.546: the script moves focus to the panel so a screen reader reads it
 * out. The panel is not a control, so the browser's focus ring (drawn round
 * the top of the card only, above the resend link) is dropped.
 */
.occ-rg-success-panel:focus,
.occ-rg-notice-panel:focus {
	outline: none;
}

.occ-rg-success-badge {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
}

.occ-rg-success-badge svg {
	display: block;
	width: 100%;
	height: 100%;
}

/*
 * Ring first, then the check drawn into it. The check's delay is what makes it
 * read as a confirmation rather than as a static icon that happened to fade in.
 */
.occ-rg-success-ring {
	fill: none;
	stroke: var(--occ-rg-success);
	stroke-width: 2.5;
	stroke-dasharray: 145;
	stroke-dashoffset: 145;
	animation: occ-rg-success-ring-in .5s ease-out forwards;
}

.occ-rg-success-check {
	fill: none;
	stroke: var(--occ-rg-success);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: occ-rg-success-check-in .3s .4s ease-out forwards;
}

@keyframes occ-rg-success-ring-in {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes occ-rg-success-check-in {
	to {
		stroke-dashoffset: 0;
	}
}

.occ-rg-success-title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
}

.occ-rg-success-text {
	margin: 0 auto;
	max-width: 42ch;
	font-size: 15px;
	line-height: 1.6;
}

.occ-rg-success-text p:last-child {
	margin-bottom: 0;
}

/* The redirect notice. Only rendered when a redirect is actually coming. */
.occ-rg-success-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	font-size: 13px;
	opacity: .75;
}

/*
 * Authored here rather than ported: the original's spinner rule was never read
 * during this work, so this is a new one and should be judged as new.
 */
.occ-rg-success-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	opacity: .7;
	animation: occ-rg-success-spin .7s linear infinite;
}

@keyframes occ-rg-success-spin {
	to {
		transform: rotate(360deg);
	}
}

/*
 * No Close action is rendered, on any surface. In the modal, occ-modal.js
 * already supplies a close control and a second one inside the panel would be
 * redundant; on the standalone shortcode page there is nothing to close. The
 * original had one because it owned its own overlay and could ask whether it
 * was inside it. This script deliberately cannot ask. R-007, D-155.
 */

/*
 * A confirmation must not depend on motion to be readable. With motion reduced
 * the ring and check are simply drawn, and the spinner holds still.
 */
@media (prefers-reduced-motion: reduce) {

	.occ-rg-success-ring,
	.occ-rg-success-check {
		animation: none;
		stroke-dashoffset: 0;
	}

	.occ-rg-success-spinner {
		animation: none;
	}
}

/*
 * The resend offer, shown under the success message when an account is waiting
 * to be activated. Rendered by the script only when the server supplied one, so
 * an auto-approved registration never sees it.
 *
 * Sits below the alert rather than inside it: the alert is the outcome, this is
 * a next step, and a link inside a coloured status box reads as part of the
 * status rather than as something to press.
 *
 * Centred and spaced to match the form's own footer, because in the modal this
 * lands between a centred success panel and a centred sign-in line, and a
 * left-aligned run of text between them reads as a stray fragment.
 */
.occ-rg-resend-offer {
	margin: 0 0 18px;
	text-align: center;
	font-size: .9em;
	line-height: 1.7;
}

.occ-rg-resend-link {
	color: var(--occ-rg-accent);
	text-decoration: underline;
}

.occ-rg-resend-link:hover,
.occ-rg-resend-link:focus {
	color: var(--occ-rg-accent-hover);
}

/*
 * Waiting out the rate limit. Dimmed and not underlined, so it reads as not yet
 * available rather than as a link that failed. The click is blocked in script
 * as well: the token is single use, and spending it on a refusal would remove
 * the offer for good.
 */
.occ-rg-resend-link.is-waiting {
	color: var(--occ-rg-muted);
	text-decoration: none;
	cursor: default;
}

/*
 * Its own line. Beside the link the two read as one run-on sentence, which is
 * how the first version of this shipped.
 */
.occ-rg-resend-count {
	display: block;
	color: var(--occ-rg-muted);
	font-size: .92em;
}

.occ-rg-login-notice {
	margin-bottom: 18px;
	padding: 12px 14px;
	/* D-342: outlined all round, no edge thicker than the others. */
	border: 1px solid var(--occ-rg-border-strong);
	border-radius: var(--occ-rg-radius);
	background: var(--occ-rg-surface);
	font-size: .93em;
}

.occ-rg-login-notice--info {
	border-color: var(--occ-rg-accent);
	background: var(--occ-rg-accent-tint);
}

.occ-rg-login-notice--warning {
	border-color: var(--occ-rg-warning);
	background: var(--occ-rg-warning-tint);
}

.occ-rg-login-notice--success {
	border-color: var(--occ-rg-success);
	background: var(--occ-rg-success-tint);
}

.occ-rg-form-error {
	padding: 14px;
	border-radius: var(--occ-rg-radius);
	background: var(--occ-rg-warning-tint);
	color: var(--occ-rg-warning);
}

/* ==========================================================================
   Fields
   ========================================================================== */

.occ-rg-fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--occ-rg-gap);
}

.occ-rg-field-full {
	grid-column: 1 / -1;
}

.occ-rg-field-half {
	grid-column: span 1;
}

@media screen and (max-width: 600px) {
	.occ-rg-fields-grid {
		grid-template-columns: 1fr;
	}

	.occ-rg-field-half {
		grid-column: 1 / -1;
	}
}

.occ-rg-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: .92em;
}

.occ-rg-required {
	color: var(--occ-rg-danger);
	margin-left: 2px;
}

.occ-rg-field input[type="text"],
.occ-rg-field input[type="email"],
.occ-rg-field input[type="tel"],
.occ-rg-field input[type="url"],
.occ-rg-field input[type="number"],
.occ-rg-field input[type="date"],
.occ-rg-field input[type="password"],
.occ-rg-field textarea,
.occ-rg-field select {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--occ-rg-border);
	border-radius: var(--occ-rg-radius);
	background: #fff;
	font-family: inherit;
	font-size: 1em;
	line-height: 1.4;
	color: inherit;
}

.occ-rg-field input:focus,
.occ-rg-field textarea:focus,
.occ-rg-field select:focus {
	border-color: var(--occ-rg-accent);
	outline: 2px solid var(--occ-rg-accent-tint);
	outline-offset: 0;
}

/* Set by the script when a field fails validation. */
.occ-rg-field.has-error input,
.occ-rg-field.has-error textarea,
.occ-rg-field.has-error select {
	border-color: var(--occ-rg-danger);
}

.occ-rg-field-desc,
.occ-rg-field-hint {
	margin: 4px 0 0;
	font-size: .85em;
	color: var(--occ-rg-muted);
}

.occ-rg-field-desc {
	margin: 0 0 8px;
}

.occ-rg-field-error {
	display: none;
	margin-top: 6px;
	font-size: .85em;
	color: var(--occ-rg-danger);
}

.occ-rg-field-error.is-visible {
	display: block;
}

.occ-rg-section-heading {
	grid-column: 1 / -1;
	margin: 8px 0 0;
	font-size: 1.05em;
}

/* Checkboxes and radios put the control beside its wording rather than above,
   because the wording is the label. */
.occ-rg-checkbox-label,
.occ-rg-radio-label {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-weight: 400;
	font-size: .93em;
	line-height: 1.5;
	cursor: pointer;
}

.occ-rg-checkbox-label input,
.occ-rg-radio-label input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.occ-rg-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ==========================================================================
   Password
   ========================================================================== */

.occ-rg-password-wrap {
	position: relative;
}

.occ-rg-password-wrap input {
	padding-right: 44px;
}

.occ-rg-toggle-password {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	padding: 6px;
	border: 0;
	background: none;
	color: var(--occ-rg-muted);
	cursor: pointer;
	line-height: 1;
}

.occ-rg-toggle-password:hover,
.occ-rg-toggle-password:focus {
	color: var(--occ-rg-accent);
}

.occ-rg-password-strength {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 8px;
}

.occ-rg-strength-bar {
	flex: 1 1 auto;
	height: 4px;
	border-radius: 999px;
	background: var(--occ-rg-border);
	overflow: hidden;
}

.occ-rg-strength-fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--occ-rg-danger);
	transition: width .2s ease, background-color .2s ease;
}

.occ-rg-password-strength.is-fair .occ-rg-strength-fill {
	background: var(--occ-rg-warning);
}

.occ-rg-password-strength.is-good .occ-rg-strength-fill,
.occ-rg-password-strength.is-strong .occ-rg-strength-fill {
	background: var(--occ-rg-success);
}

.occ-rg-strength-label {
	flex: 0 0 auto;
	min-width: 48px;
	font-size: .8em;
	color: var(--occ-rg-muted);
}

.occ-rg-password-reqs {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: .82em;
	color: var(--occ-rg-muted);
}

.occ-rg-password-reqs li {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 0 0 3px;
}

.occ-rg-req-mark {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.occ-rg-password-reqs li.is-met {
	color: var(--occ-rg-success);
}

/* ==========================================================================
   Chip multi-select, built by the form script
   ========================================================================== */

.occ-rg-chips {
	position: relative;
}

.occ-rg-chips-box {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	min-height: 46px;
	padding: 7px 10px;
	border: 1px solid var(--occ-rg-border);
	border-radius: var(--occ-rg-radius);
	background: #fff;
	cursor: text;
}

.occ-rg-chips.is-open .occ-rg-chips-box {
	border-color: var(--occ-rg-accent);
}

.occ-rg-chip {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 3px 4px 3px 10px;
	border-radius: 999px;
	background: var(--occ-rg-accent-tint);
	color: var(--occ-rg-accent);
	font-size: .85em;
}

.occ-rg-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.occ-rg-chip-remove:hover,
.occ-rg-chip-remove:focus {
	background: var(--occ-rg-accent);
	color: var(--occ-rg-on-accent);
}

/*
 * Specificity, not preference.
 *
 * `.occ-rg-field input[type="text"]` is (0,2,1) and this was (0,1,0), so the
 * shared field rule won and the chip input drew its own border, radius and
 * 11px padding inside a box already providing all three. The result was a
 * rounded rectangle nested inside a rounded rectangle.
 *
 * Scoping through `.occ-rg-chips` takes this to (0,3,0), which clears the
 * field rule without touching it. Editing the shared rule instead would put a
 * chip exception into the styling every text input on the form depends on.
 */
.occ-rg-field .occ-rg-chips .occ-rg-chip-input,
.occ-rg-chips .occ-rg-chip-input {
	flex: 1 1 80px;
	min-width: 80px;
	width: auto;
	border: 0;
	border-radius: 0;
	outline: none;
	padding: 4px 0;
	font-family: inherit;
	font-size: .95em;
	background: none;
}

/*
 * Single-choice mode.
 *
 * A cap of one is a combobox, not a small tag input. The box matches the text
 * inputs exactly, the selection reads as text rather than a removable pill, and
 * the same box becomes the search field while the list is open.
 */
.occ-rg-chips.is-single .occ-rg-chips-box {
	flex-wrap: nowrap;
	gap: 10px;
	min-height: 0;
	padding: 11px 13px;
	cursor: pointer;
}

.occ-rg-chip-value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 1em;
	line-height: 1.4;
}

/*
 * The value and the search input occupy the same slot: the label while closed,
 * the field while open. Showing both would double the control's height at the
 * exact moment it is being used.
 */
.occ-rg-chips.is-single.has-value:not(.is-open) .occ-rg-chip-input,
.occ-rg-chips.is-single.is-open .occ-rg-chip-value,
.occ-rg-chips.is-single:not(.has-value) .occ-rg-chip-value {
	display: none;
}

.occ-rg-field .occ-rg-chips.is-single .occ-rg-chip-input,
.occ-rg-chips.is-single .occ-rg-chip-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	padding: 0;
	font-size: 1em;
	line-height: 1.4;
}

.occ-rg-chip-tools {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex: 0 0 auto;
}

/* Nothing to clear until something is chosen. */
.occ-rg-chips.is-single:not(.has-value) .occ-rg-chip-clear {
	display: none;
}

.occ-rg-chip-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--occ-rg-muted);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.occ-rg-chip-clear:hover,
.occ-rg-chip-clear:focus {
	background: var(--occ-rg-accent-tint);
	color: var(--occ-rg-accent);
}

/*
 * Drawn as a border pair rather than a glyph, so it needs no icon font and
 * cannot fail to load. It flips on open, which is the affordance separating
 * this from a plain text field.
 */
.occ-rg-chip-caret {
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid var(--occ-rg-muted);
	border-bottom: 2px solid var(--occ-rg-muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease, margin 0.15s ease;
}

.occ-rg-chips.is-single.is-open .occ-rg-chip-caret {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.occ-rg-chip-option.is-chosen {
	background: var(--occ-rg-accent-tint);
	color: var(--occ-rg-accent);
}

.occ-rg-chip-dropdown {
	display: none;
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid var(--occ-rg-border-strong);
	border-radius: var(--occ-rg-radius);
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.occ-rg-chips.is-open .occ-rg-chip-dropdown {
	display: block;
}

.occ-rg-chip-option {
	padding: 9px 12px;
	font-size: .92em;
	cursor: pointer;
}

.occ-rg-chip-option:hover,
.occ-rg-chip-option.is-active {
	background: var(--occ-rg-accent-tint);
}

.occ-rg-chip-empty {
	padding: 9px 12px;
	font-size: .9em;
	color: var(--occ-rg-muted);
}

/* ==========================================================================
   Files
   ========================================================================== */

.occ-rg-file-upload input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1px dashed var(--occ-rg-border-strong);
	border-radius: var(--occ-rg-radius);
	background: var(--occ-rg-surface);
	font-size: .9em;
}

.occ-rg-file-preview {
	position: relative;
	display: inline-block;
	margin-top: 10px;
}

.occ-rg-file-preview img {
	max-width: 110px;
	height: auto;
	border-radius: var(--occ-rg-radius);
	display: block;
}

.occ-rg-file-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: var(--occ-rg-danger);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

/* ==========================================================================
   Role tabs
   ========================================================================== */

.occ-rg-role-tabs {
	display: flex;
	gap: 8px;
	padding: 20px 28px 0;
}

.occ-rg-role-tab {
	flex: 1 1 0;
	display: inline-flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
	padding: 12px 10px;
	border: 1px solid var(--occ-rg-border);
	border-radius: var(--occ-rg-radius);
	background: var(--occ-rg-surface);
	color: var(--occ-rg-muted);
	font-family: inherit;
	font-size: .95em;
	font-weight: 600;
	cursor: pointer;
}

.occ-rg-role-tab:hover {
	border-color: var(--occ-rg-border-strong);
}

.occ-rg-role-tab.is-active {
	border-color: var(--occ-rg-accent);
	background: var(--occ-rg-accent-tint);
	color: var(--occ-rg-accent);
}

/* ==========================================================================
   Wizard
   ========================================================================== */

.occ-rg-wizard-progress {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
}

.occ-rg-wizard-step-indicator {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: center;
	flex: 0 0 auto;
	color: var(--occ-rg-muted);
	font-size: .78em;
	text-align: center;
}

.occ-rg-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 2px solid var(--occ-rg-border);
	border-radius: 50%;
	background: #fff;
	font-weight: 600;
}

.occ-rg-wizard-step-indicator.is-active .occ-rg-step-number {
	border-color: var(--occ-rg-accent);
	background: var(--occ-rg-accent);
	color: var(--occ-rg-on-accent);
}

.occ-rg-wizard-step-indicator.is-active {
	color: var(--occ-rg-accent);
}

/* A completed step reads as done rather than merely not-current. */
.occ-rg-wizard-step-indicator.is-complete .occ-rg-step-number {
	border-color: var(--occ-rg-success);
	color: var(--occ-rg-success);
}

.occ-rg-step-connector {
	flex: 1 1 auto;
	height: 2px;
	margin: 0 6px;
	background: var(--occ-rg-border);
	/* Aligns with the circles rather than the labels below them. */
	margin-bottom: 20px;
}

.occ-rg-wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: center;
	margin-top: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.occ-rg-btn {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--occ-rg-radius);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
}

.occ-rg-btn-primary {
	background: var(--occ-rg-accent);
	color: var(--occ-rg-on-accent);
}

.occ-rg-btn-primary:hover,
.occ-rg-btn-primary:focus {
	background: var(--occ-rg-accent-hover);
	color: var(--occ-rg-on-accent);
}

.occ-rg-btn-secondary {
	border-color: var(--occ-rg-border-strong);
	background: #fff;
	color: inherit;
}

.occ-rg-btn-secondary:hover,
.occ-rg-btn-secondary:focus {
	background: var(--occ-rg-surface);
}

.occ-rg-btn[disabled],
.occ-rg-btn.is-busy {
	opacity: .65;
	cursor: default;
}

/*
 * Class, not id.
 *
 * This read `#occ-rg-login-submit` and matched nothing: the template renders
 * `id="occ-rg-{uid}-login-submit"`, with a per-instance uid in the middle, so
 * two shortcodes on one page do not collide. The rule looked correct and the
 * button had been auto-width since it was written.
 *
 * The class is stable across instances, which is why every other rule in this
 * file targets classes.
 */
.occ-rg-form-submit,
.occ-rg-login-submit {
	width: 100%;
}

.occ-rg-wizard-nav .occ-rg-form-submit {
	width: auto;
}

/* ==========================================================================
   Login options and verification
   ========================================================================== */

/*
 * The login form has no fields grid.
 *
 * Register lays its fields out with `.occ-rg-fields-grid`, which supplies the
 * vertical rhythm through its `gap`. Login's fields are direct children of the
 * body with no such wrapper, so nothing spaced them at all: the options row,
 * the verification widget and the button collapsed against the password field.
 *
 * A flex column using the same token, so the two forms share one spacing scale
 * rather than acquiring a second one.
 */
.occ-rg-login-form .occ-rg-form-body {
	display: flex;
	flex-direction: column;
	gap: var(--occ-rg-gap);
}

/*
 * These carry their own bottom margin for the grid layout, where there is no
 * gap to rely on. Inside the flex column that margin lands on top of the gap
 * and doubles it.
 */
.occ-rg-login-form .occ-rg-alert,
.occ-rg-login-form .occ-rg-login-notice {
	margin-bottom: 0;
}

/*
 * The options row sits closer to the password field than to the verification
 * widget below it, because it belongs to the field above: "keep me signed in"
 * and "forgotten your password" are both about the credentials just entered.
 */
.occ-rg-login-form .occ-rg-login-options {
	margin-top: calc(var(--occ-rg-gap) * -0.5);
}

.occ-rg-login-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
}

.occ-rg-forgot-link {
	font-size: .9em;
}

.occ-rg-field-verification {
	display: flex;
	justify-content: center;
}

/* ---------------------------------------------------------------------------
 * The refusal panel.
 *
 * Same geometry as the success panel so the two read as one system, and a muted
 * slate badge rather than the green tick or the danger red: somebody locked out
 * or waiting on an activation email has not done anything wrong, and a warning
 * colour reads as an accusation.
 * ------------------------------------------------------------------------- */

.occ-rg-form-wrap.is-blocked > *:not(.occ-rg-notice-panel):not(.occ-rg-resend-offer) {
	display: none;
}

.occ-rg-notice-panel {
	--occ-rg-notice: #55606e;
	--occ-rg-notice-tint: #eef1f4;

	padding: 44px 32px 40px;
	text-align: center;
}

.occ-rg-notice-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--occ-rg-notice-tint);
}

.occ-rg-notice-badge svg {
	display: block;
	width: 34px;
	height: 34px;
}

.occ-rg-notice-mark {
	fill: none;
	stroke: var(--occ-rg-notice);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.occ-rg-notice-title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
}

.occ-rg-notice-text {
	margin: 0 auto;
	max-width: 42ch;
	font-size: 15px;
	line-height: 1.6;
}
