.account-flow {
	color: var(--nx-ink, #33271c);
	font: 13px/1.55 var(--nx-font-ui, "Segoe UI", Arial, sans-serif);
}

.account-flow__header {
	position: relative;
	margin-bottom: 14px;
	padding: 24px;
	border: 1px solid #102f2d;
	border-radius: var(--nx-radius-md, 9px);
	background:
		radial-gradient(circle at 92% 24%, rgba(215, 170, 80, .19), transparent 27%),
		linear-gradient(135deg, #153f3b, #214f48);
	box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 8px 22px rgba(20, 43, 40, .18);
	color: #fff8e9;
	overflow: hidden;
}

.account-flow__header::after {
	position: absolute;
	top: 50%;
	right: -42px;
	width: 164px;
	height: 164px;
	border: 1px solid rgba(230, 197, 123, .28);
	border-radius: 50%;
	box-shadow: 0 0 0 24px rgba(230, 197, 123, .055);
	content: "";
	transform: translateY(-50%);
}

.account-flow__eyebrow {
	margin: 0 0 6px;
	color: var(--nx-gold-soft, #f0d390);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.account-flow__header h2 {
	position: relative;
	z-index: 1;
	margin: 0 0 5px;
	color: #fff8e8;
	font: 700 27px/1.12 var(--nx-font-display, Georgia, serif);
	text-shadow: 0 2px rgba(0, 0, 0, .3);
}

.account-flow__header > p:not(.account-flow__eyebrow) {
	position: relative;
	z-index: 1;
	max-width: 580px;
	margin: 0;
	color: #f5ead7;
}

.account-flow__trust {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.account-flow__trust li {
	padding: 4px 9px;
	border: 1px solid rgba(240, 211, 144, .4);
	border-radius: 999px;
	background: rgba(7, 32, 30, .34);
	color: #fff7e4;
	font-size: 10px;
	font-weight: 700;
}

.account-card,
.account-key,
.account-security-note,
.account-alert {
	border: 1px solid var(--nx-line, #b99a70);
	border-radius: var(--nx-radius-md, 9px);
	background: rgba(255, 249, 237, .68);
	box-shadow: inset 0 1px rgba(255, 255, 255, .65);
}

.account-card {
	padding: 0;
	overflow: hidden;
}

.account-section {
	padding: 20px;
	border-bottom: 1px solid rgba(155, 128, 93, .62);
}

.account-section__header {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.account-section__step {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid #65451e;
	border-radius: 50%;
	background: linear-gradient(145deg, #8b612b, #523518);
	box-shadow: inset 0 1px rgba(255, 255, 255, .2);
	color: #ffe3a1;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .05em;
}

.account-section__header h3 {
	margin: 0 0 2px;
	color: #342417;
	font: 700 19px/1.2 var(--nx-font-display, Georgia, serif);
}

.account-section__header p {
	margin: 0;
	color: var(--nx-ink-soft, #6f5b48);
	font-size: 11px;
}

.account-fields,
.account-choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.account-field {
	min-width: 0;
}

.account-field--wide {
	grid-column: 1 / -1;
}

.account-field > label,
.account-card fieldset > legend {
	display: block;
	margin: 0 0 5px;
	color: #422d1b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
}

.account-field > input:not([type="checkbox"]):not([type="radio"]),
.account-field > select {
	width: 100%;
}

.account-card fieldset {
	min-width: 0;
	margin: 0;
	padding: 10px;
	border: 1px solid #c4a67d;
	border-radius: var(--nx-radius-sm, 5px);
	background: rgba(246, 234, 212, .68);
}

.account-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.account-option {
	display: flex !important;
	min-height: 38px;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	padding: 8px 10px;
	border: 1px solid #b99a70;
	border-radius: var(--nx-radius-sm, 5px);
	background: #fff9ed;
	color: #4b3420;
	font-weight: 600 !important;
	cursor: pointer;
	transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.account-option:hover,
.account-option:focus-within {
	border-color: var(--nx-green, #24564f);
	background: #fffdf7;
	transform: translateY(-1px);
}

.account-option input:checked + span {
	color: #154a43;
	font-weight: 800;
}

.account-help {
	min-height: 17px;
	margin: 4px 0 0;
	color: var(--nx-ink-soft, #6f5b48);
	font-size: 10px;
}

.account-start-note {
	margin: 14px 0 0;
	padding: 11px 12px;
	border-left: 4px solid var(--nx-green, #24564f);
	border-radius: 0 var(--nx-radius-sm, 5px) var(--nx-radius-sm, 5px) 0;
	background: #dce7d8;
	color: #29453b;
}

.account-consent {
	padding: 13px;
	border: 1px solid #b7996f;
	border-radius: var(--nx-radius-sm, 5px);
	background: #efe0c3;
}

.account-consent label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	font-weight: 600;
}

.account-consent input {
	flex: 0 0 auto;
	margin-top: 2px !important;
}

.account-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: rgba(229, 207, 170, .58);
}

.account-actions p {
	margin: 0;
	color: var(--nx-ink-soft, #6f5b48);
	font-size: 10px;
}

.account-actions .account-submit {
	flex: 0 0 auto;
	min-width: 170px;
}

.account-security-note {
	display: flex;
	gap: 11px;
	align-items: center;
	margin-top: 12px;
	padding: 13px 15px;
	border-color: #6c947d;
	background: #dce9dc;
	color: #254238;
}

.account-security-note__icon {
	display: grid;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	place-items: center;
	border-radius: 50%;
	background: var(--nx-green, #24564f);
	color: #fff8e9;
	font-weight: 900;
}

.account-alert,
.account-key {
	margin-bottom: 12px;
	padding: 14px;
}

.account-alert--error {
	border-color: #a33b2f;
	background: #f7d5cd;
	color: #721f18;
}

.account-alert--success {
	border-color: #4e7b43;
	background: #d9ebd4;
	color: #254e1d;
}

.account-key {
	text-align: center;
}

.account-key code {
	display: block;
	margin: 12px 0;
	padding: 12px;
	background: #241e19;
	color: #ffe29b;
	font-size: 17px;
	letter-spacing: 1px;
	overflow-wrap: anywhere;
	user-select: all;
}

.account-card--disabled {
	background: #ded3bf;
	color: #665b4d;
}

.account-cancel-form {
	margin-top: 8px;
	text-align: center;
}

.account-link-button {
	border: 0;
	background: none;
	color: #145d70;
	cursor: pointer;
	text-decoration: underline;
}

@media (max-width: 720px) {
	.account-flow__header,
	.account-section {
		padding: 16px;
	}

	.account-flow__header::after {
		op: -65px;
		right: -65px;
		transform: none;
	}

	.account-flow__header h2 {
		font-size: 23px;
	}

	.account-fields,
	.account-choice-grid {
		grid-template-columns: 1fr;
	}

	.account-field--wide {
		grid-column: auto;
	}

	.account-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.account-actions .account-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.account-option {
		transition: none;
	}
}
