/**
 * Registration Form Styles
 *
 * Matches the login modal design for consistency
 *
 * @package Extendable
 * @since 2.0.35
 */

/* Form Container */
.registerform {
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.registerform *,
.registerform *::before,
.registerform *::after {
	box-sizing: border-box;
}

.registerform .login-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 100%;
}

/* Form Groups */
.registerform .form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 100%;
	overflow: hidden;
}

/* Labels */
.registerform label {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--foreground, #333);
}

/* Input Fields */
.registerform .form-control,
.registerform .registerform__field {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--wp--preset--color--foreground, #333);
	background-color: var(--wp--preset--color--background, #fff);
	border: 1px solid var(--wp--preset--color--foreground, #333);
	border-radius: 6px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.registerform .form-control:focus,
.registerform .registerform__field:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary, #007bff);
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.registerform .form-control::placeholder,
.registerform .registerform__field::placeholder {
	color: var(--wp--preset--color--foreground, #333);
	opacity: 0.4;
}

/* Textarea */
.registerform textarea.registerform__field {
	min-height: 100px;
	resize: vertical;
}

/* Submit Button */
.registerform .registerform__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	font-family: inherit;
	color: var(--wp--preset--color--background, #fff);
	background-color: var(--wp--preset--color--primary, #007bff);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.registerform .registerform__submit:hover {
	opacity: 0.9;
}

.registerform .registerform__submit:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.registerform .registerform__submit:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

/* Error/Notice Messages */
.registerform .bbp-template-notice {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	font-size: 0.875rem;
	line-height: 1.4;
	background-color: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.registerform .bbp-template-notice p {
	margin: 0;
}

/* Success Message */
.registerform .bbp-template-notice--success {
	background-color: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

/* Helper Text */
.registerform .form-group p {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--foreground, #333);
	opacity: 0.7;
	margin: 0;
}

/* Required Field Indicator */
.registerform label[for]:after {
	content: "";
}

.registerform .required label:after {
	content: " *";
	color: #dc2626;
}

/* Field Groups - for related fields side by side */
.registerform .form-group--row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 480px) {
	.registerform .form-group--row {
		grid-template-columns: 1fr;
	}
}

/* Section Headers */
.registerform .form-section {
	margin-top: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--tertiary, #eee);
}

.registerform .form-section__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 1rem;
	color: var(--wp--preset--color--foreground, #333);
}

/* Responsive */
@media (max-width: 600px) {
	.registerform {
		padding: 0;
	}

	.registerform .registerform__submit {
		padding: 1rem;
	}
}
