/**
 * [registration_form] styling. Values follow the feature spec exactly (shared look with
 * the change-password form; #763334 theme).
 */

.pmp-reg-form {
	max-width: 500px;
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pmp-reg-field {
	margin: 0 0 18px;
}

.pmp-reg-field label {
	display: block;
	color: #763334;
	font-weight: 600;
	margin-bottom: 8px;
}

.pmp-reg-field input {
	width: 100%;
	height: 48px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 12px;
	font-size: 16px;
	box-sizing: border-box;
}

.pmp-reg-field input:focus {
	border-color: #763334;
	outline: none;
}

/* Required-field asterisk. */
.pmp-reg-required {
	color: #d63638;
	font-weight: 700;
	margin-left: 2px;
}

/* Invalid (empty required) field highlight. */
.pmp-reg-field.pmp-reg-invalid input {
	border-color: #d63638;
	background: #fff5f5;
}

/* Inline per-field error message — hidden until the field is flagged invalid. */
.pmp-reg-field-error {
	display: none;
	margin-top: 6px;
	color: #d63638;
	font-size: 13px;
}

.pmp-reg-field.pmp-reg-invalid .pmp-reg-field-error {
	display: block;
}

.pmp-reg-submit {
	background: #763334;
	color: #fcede9;
	width: 100%;
	height: 50px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pmp-reg-submit:hover,
.pmp-reg-submit:focus {
	background: #5f2829; /* slightly darker than #763334 */
}

.pmp-reg-submit:disabled {
	opacity: 0.7;
	cursor: default;
}

.pmp-reg-message {
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 20px;
}

.pmp-reg-message.pmp-reg-success {
	background: #e6f4ea;
	color: #1e7e34;
}

.pmp-reg-message.pmp-reg-error {
	background: #fdecea;
	color: #b32d2e;
}

/* Login link (shown when the email already exists) styled as a button. */
.pmp-reg-login-link {
	display: inline-block;
	margin-top: 10px;
	padding: 9px 22px;
	background: #763334;
	color: #fcede9;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s ease;
}

.pmp-reg-login-link:hover,
.pmp-reg-login-link:focus {
	background: #5f2829;
	color: #fcede9;
}

/* Tablet */
@media (max-width: 782px) {
	.pmp-reg-form {
		width: 90%;
	}
}

/* Mobile: full width, reduced padding, no horizontal scroll (inputs already 100%). */
@media (max-width: 600px) {
	.pmp-reg-form {
		width: 100%;
		padding: 20px;
	}
}
