/* New User Approve: login & registration screens */

:root {
	--nua-accent: #6d5dfc;
}

.login {
	--nua-accent-soft: color-mix(in srgb, var(--nua-accent) 12%, #fff);
	--nua-accent-strong: color-mix(in srgb, var(--nua-accent) 80%, #000);
}

/* Welcome / registration notes */

.login .message.nua-login-note {
	position: relative;
	padding: 14px 16px 14px 48px;
	border: 0;
	border-left: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 0 0 1px rgba(16, 24, 40, .06);
	line-height: 1.55;
}

.login .message.nua-login-note::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 14px;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: var(--nua-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / 14px no-repeat;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nua-accent) 25%, #fff);
}

/* Pending / denied login errors get a friendlier look */

.login #login_error {
	border-left-color: #f59e0b;
	border-radius: 12px;
}

/* ---------- Pending approval card ---------- */

.login .nua-pending-card {
	margin-top: 20px;
	padding: 32px 28px 26px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 20px 40px -20px rgba(16, 24, 40, .25);
	text-align: center;
	animation: nua-card-in .45s cubic-bezier(.2, .9, .3, 1.2);
}

.nua-pending-card__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	border-radius: 24px;
	color: #fff;
	background: linear-gradient(135deg, var(--nua-accent), var(--nua-accent-strong));
	box-shadow: 0 14px 28px -12px var(--nua-accent);
}

.nua-pending-card__icon svg {
	width: 40px;
	height: 40px;
	animation: nua-flip 3.2s ease-in-out infinite;
}

.login .nua-pending-card__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

.login .nua-pending-card__title a {
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	background: none;
	text-indent: 0;
}

.nua-pending-card__text {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

.nua-pending-card__text p { margin: 0 0 8px; }

.nua-steps {
	margin: 20px 0 22px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.nua-steps__item {
	position: relative;
	margin: 0;
	padding: 0 0 16px 38px;
	color: #6b7280;
	font-size: 14px;
	line-height: 24px;
}

.nua-steps__item:last-child { padding-bottom: 0; }

.nua-steps__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
}

.nua-steps__item:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 11px;
	top: 26px;
	bottom: 2px;
	width: 2px;
	background: #e5e7eb;
}

.nua-steps__item--done { color: #111827; }

.nua-steps__item--done::before {
	border-color: #16a34a;
	background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.nua-steps__item--done::after { background: #16a34a; }

.nua-steps__item--current { color: #111827; font-weight: 600; }

.nua-steps__item--current::before {
	border-color: var(--nua-accent);
	box-shadow: 0 0 0 4px var(--nua-accent-soft);
	background: radial-gradient(circle, var(--nua-accent) 0 4px, #fff 5px);
	animation: nua-ring 1.8s ease-in-out infinite;
}

.login .nua-pending-card__back {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	color: var(--nua-accent-strong);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s;
}

.login .nua-pending-card__back:hover,
.login .nua-pending-card__back:focus {
	color: var(--nua-accent-strong);
	background: var(--nua-accent-soft);
	box-shadow: none;
}

@keyframes nua-card-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
}

@keyframes nua-flip {
	0%, 40% { transform: rotate(0); }
	50%, 90% { transform: rotate(180deg); }
	100% { transform: rotate(360deg); }
}

@keyframes nua-ring {
	50% { box-shadow: 0 0 0 7px var(--nua-accent-soft); }
}

@media (prefers-reduced-motion: reduce) {
	.login .nua-pending-card,
	.nua-pending-card__icon svg,
	.nua-steps__item--current::before {
		animation: none;
	}
}
