:root {
	--pfl-cid-ink: #15192b;
	--pfl-cid-muted: #667085;
	--pfl-cid-border: #ddd7ef;
	--pfl-cid-brand: #5b21b6;
	--pfl-cid-brand-dark: #401486;
	--pfl-cid-mint: #1fb8a9;
	--pfl-cid-surface: #ffffff;
	--pfl-cid-danger: #b42318;
}

.pfl-cid-login {
	display: grid;
	gap: 10px;
	margin-top: 16px;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pfl-cid-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--pfl-cid-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.pfl-cid-divider::before,
.pfl-cid-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e8e5f0;
}

.pfl-cid-button {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 11px 16px;
	border: 1px solid var(--pfl-cid-border);
	border-radius: 12px;
	background: var(--pfl-cid-surface);
	color: var(--pfl-cid-ink);
	box-shadow: 0 8px 22px rgba( 44, 29, 77, .07 );
	font: 700 15px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pfl-cid-button__content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.pfl-cid-button:hover {
	border-color: #a48bd5;
	box-shadow: 0 10px 26px rgba( 73, 43, 123, .12 );
	transform: translateY( -1px );
}

.pfl-cid-button:focus-visible,
.pfl-cid-link:focus-visible,
.pfl-cid-back:focus-visible {
	outline: 3px solid rgba( 31, 184, 169, .38 );
	outline-offset: 3px;
}

.pfl-cid-button img {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.pfl-cid-button__arrow {
	position: absolute;
	right: 16px;
	margin-left: 0;
	color: var(--pfl-cid-brand);
	font-size: 18px;
}

.pfl-cid-help {
	margin: 2px 0 0;
	color: var(--pfl-cid-muted);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.pfl-cid-link {
	justify-self: center;
	color: var(--pfl-cid-brand);
	font-size: 13px;
	font-weight: 700;
	text-underline-offset: 3px;
}

.pfl-cid-message {
	padding: 12px 14px;
	border: 1px solid #f0c8c4;
	border-radius: 10px;
	background: #fff5f4;
	color: #912018;
	font-size: 13px;
	line-height: 1.45;
}

.pfl-cid-message--success {
	border-color: #a9ded5;
	background: #f0fbf8;
	color: #11675e;
}

.pfl-cid-account-page {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient( circle at 10% 5%, rgba( 31, 184, 169, .12 ), transparent 28% ),
		radial-gradient( circle at 90% 90%, rgba( 91, 33, 182, .12 ), transparent 32% ),
		#f7f7fb;
	color: var(--pfl-cid-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pfl-cid-account-shell {
	box-sizing: border-box;
	display: grid;
	gap: 18px;
	width: min( 100% - 32px, 660px );
	margin: 0 auto;
	padding: 56px 0;
}

.pfl-cid-back {
	justify-self: start;
	color: var(--pfl-cid-brand-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.pfl-cid-account-card {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	padding: clamp( 26px, 6vw, 48px );
	border: 1px solid rgba( 91, 33, 182, .13 );
	border-radius: 26px;
	background: rgba( 255, 255, 255, .96 );
	box-shadow: 0 24px 72px rgba( 36, 28, 56, .12 );
}

.pfl-cid-account-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient( 90deg, var(--pfl-cid-brand), #7267e8 55%, var(--pfl-cid-mint) );
}

.pfl-cid-account-card__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 34px;
}

.pfl-cid-account-card__brand img {
	width: 52px;
	height: 52px;
}

.pfl-cid-account-card__brand div {
	display: grid;
	gap: 2px;
}

.pfl-cid-account-card__brand span {
	color: var(--pfl-cid-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pfl-cid-account-card__brand strong {
	font-size: 17px;
}

.pfl-cid-eyebrow {
	margin: 0 0 10px;
	color: var(--pfl-cid-brand);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
}

.pfl-cid-account-card h1 {
	margin: 0;
	font-size: clamp( 31px, 7vw, 46px );
	line-height: 1.04;
	letter-spacing: -.035em;
}

.pfl-cid-account-copy {
	margin: 18px 0 28px;
	color: var(--pfl-cid-muted);
	font-size: 16px;
	line-height: 1.65;
}

.pfl-cid-status {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	border: 1px solid #ddd9e8;
	border-radius: 15px;
	background: #faf9fc;
}

.pfl-cid-status > span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: #ebe7f5;
	color: var(--pfl-cid-brand);
	font-weight: 800;
}

.pfl-cid-status div {
	display: grid;
	gap: 4px;
}

.pfl-cid-status small {
	color: var(--pfl-cid-muted);
	font-size: 13px;
	line-height: 1.45;
}

.pfl-cid-status--connected {
	border-color: #a9ded5;
	background: #f0fbf8;
}

.pfl-cid-status--connected > span {
	background: #d8f5ef;
	color: #08796b;
}

.pfl-cid-account-actions {
	margin-top: 18px;
}

.pfl-cid-button--primary {
	border-color: var(--pfl-cid-brand);
	background: var(--pfl-cid-brand);
	color: #fff;
	box-shadow: 0 12px 28px rgba( 91, 33, 182, .2 );
}

.pfl-cid-button--primary:hover {
	border-color: var(--pfl-cid-brand-dark);
	background: var(--pfl-cid-brand-dark);
}

.pfl-cid-button--primary img {
	padding: 3px;
	border-radius: 7px;
	background: #fff;
}

.pfl-cid-button--danger {
	border-color: #e7b7b3;
	color: var(--pfl-cid-danger);
	box-shadow: none;
}

.pfl-cid-account-note {
	margin: 16px 0 0;
	color: var(--pfl-cid-muted);
	font-size: 12px;
	line-height: 1.55;
}

@media ( max-width: 560px ) {
	.pfl-cid-account-shell {
		width: min( 100% - 22px, 660px );
		padding: 24px 0;
	}

	.pfl-cid-account-card {
		border-radius: 20px;
	}

	.pfl-cid-account-card__brand {
		margin-bottom: 26px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pfl-cid-button {
		transition: none;
	}
}
