.tpi-auth {
	display: flex;
	justify-content: center;
	padding: 32px 16px;
}

.tpi-auth-card {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(20, 20, 20, 0.06), 0 12px 32px rgba(20, 20, 20, 0.08);
	padding: 32px 28px;
	box-sizing: border-box;
}

.tpi-auth-title {
	margin: 0 0 6px;
	font-size: 1.4em;
	font-weight: 700;
	text-align: center;
}

.tpi-auth-intro {
	margin: 0 0 20px;
	text-align: center;
	color: #6b6b6b;
	font-size: 0.95em;
}

.tpi-auth-error {
	background: #fdeaea;
	color: #a01313;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.9em;
	margin-bottom: 16px;
}

.tpi-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tpi-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85em;
	font-weight: 600;
	color: #333;
}

.tpi-auth-field input {
	font-weight: normal;
	font-size: 1em;
	padding: 11px 13px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fafafa;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tpi-auth-field input:focus {
	outline: none;
	border-color: #2271b1;
	background: #fff;
}

.tpi-auth-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88em;
	color: #444;
}

.tpi-auth-submit {
	margin-top: 4px;
	padding: 12px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #2271b1, #135e96);
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.tpi-auth-submit:hover {
	box-shadow: 0 4px 14px rgba(34, 113, 177, 0.35);
	transform: translateY(-1px);
}

.tpi-auth-forgot {
	display: block;
	text-align: center;
	margin-top: 18px;
	font-size: 0.85em;
	color: #6b6b6b;
	text-decoration: none;
}
.tpi-auth-forgot:hover {
	color: #2271b1;
	text-decoration: underline;
}

/* Sign-up form ----------------------------------------------------- */

.tpi-auth-hint {
	display: block;
	margin-top: 4px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #6b7280;
}

/*
 * The honeypot. Kept out of sight without display:none, which some bots
 * check for, and out of the tab order and the accessibility tree so it
 * cannot trap anyone using a keyboard or a screen reader.
 */
.tpi-auth-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tpi-auth-card .tpi-auth-forgot + .tpi-auth-forgot {
	margin-top: 8px;
}

/* Application progress ---------------------------------------------- */

.tpi-auth-steps {
	list-style: none;
	margin: 20px 0;
	padding: 0;
}

.tpi-auth-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	color: #6b7280;
	font-size: 0.9375rem;
}

.tpi-auth-step-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
}

.tpi-auth-step.is-now {
	color: #1d4ed8;
	font-weight: 600;
}

.tpi-auth-step.is-done {
	color: #16a34a;
}

.tpi-auth-step.is-done .tpi-auth-step-mark {
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}
