/* ACF User Registration – registration form layout */

/* WordPress only offers a hook after the username/email fields, so the
   name row is moved to the top of the form visually via flex order
   instead of relying on JavaScript to move it in the DOM. */
#registerform {
	display: flex;
	flex-direction: column;
}

.acf-user-reg-row {
	order: -1;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.acf-user-reg-col {
	flex: 1 1 0;
	min-width: 0;
}

@media (min-width: 601px) {
	.acf-user-reg-col {
		width: 50%;
	}
}

@media (max-width: 600px) {
	.acf-user-reg-row {
		flex-direction: column !important;
		gap: 0;
	}

	.acf-user-reg-col {
		width: 100% !important;
	}

	.acf-field {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

/* The default "Registration confirmation will be emailed to you" notice
   is redundant once the plugin shows its own success message/redirect. */
.notice.notice-info.message.register {
	display: none !important;
}

/* Login logo width/height/background-image are set inline per-site via
   wp_add_inline_style() in ACFUR_Frontend::enqueue_login_assets(). */
.login h1 a {
	margin: 0 auto;
}

@media (max-width: 600px) {
	.login h1 a {
		width: 100% !important;
		max-width: 100vw !important;
		background-position: center;
	}
}
