/* ============================================================
   Edufen Course Widgets – Tutor Registration Form
   Fully namespaced (.ecw-reg*) — no generic class names, so
   nothing here can collide with theme/Bootstrap CSS.
   ============================================================ */

.ecw-reg {
	max-width: 100%;
	box-sizing: border-box;
}
.ecw-reg * { box-sizing: border-box; }

/* Form heading + sign-in link */
.ecw-reg-heading {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
	margin-bottom: 16px;
}
.ecw-reg-signin {
	font-size: 13px;
	color: #6b7280;
	margin-top: 18px;
}
.ecw-reg-signin a {
	color: #4f46e5;
	text-decoration: none;
	font-weight: 600;
}
.ecw-reg-signin a:hover {
	color: #4338ca;
	text-decoration: underline;
}

/* Field grid: 1 or 2 columns depending on the widget setting */
.ecw-reg-fields {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 18px;
	column-gap: 16px;
}
.ecw-reg-cols-2 .ecw-reg-fields {
	grid-template-columns: 1fr 1fr;
}
.ecw-reg-field--full {
	grid-column: 1 / -1;
}
/* Always collapse to a single column on small screens regardless of setting */
@media (max-width: 600px) {
	.ecw-reg-cols-2 .ecw-reg-fields {
		grid-template-columns: 1fr;
	}
}

.ecw-reg-field {
	display: flex;
	flex-direction: column;
}
.ecw-reg-field label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #111827;
}
.ecw-reg-field input {
	width: 100%;
	font-size: 14px;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background-color: #ffffff;
	color: #111827;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ecw-reg-field input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
/* See ecw-login.css for why this is needed — browser autofill forces
   its own background/text color that ordinary CSS (even !important)
   can't override directly. */
.ecw-reg-field input:-webkit-autofill,
.ecw-reg-field input:-webkit-autofill:hover,
.ecw-reg-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: #111827;
	transition: background-color 600000s ease-in-out 0s, color 600000s ease-in-out 0s;
}
.ecw-reg-field input.ecw-reg-input-invalid {
	border-color: #dc2626;
}
.ecw-reg-field-error {
	display: block;
	min-height: 0;
	font-size: 12px;
	color: #dc2626;
	margin-top: 4px;
}

.ecw-reg-field--submit {
	margin-top: 4px;
}
.ecw-reg-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	border: 2px solid #4f46e5;
	background-color: #4f46e5;
	color: #ffffff;
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .2s ease;
}
.ecw-reg-submit:hover {
	background-color: #4338ca;
	border-color: #4338ca;
	color: #ffffff;
}
.ecw-reg-submit:disabled {
	opacity: .65;
	cursor: not-allowed;
}
.ecw-reg-btn-icon {
	display: inline-flex;
	align-items: center;
}

/* Success / error banners — hidden by default, shown via JS */
.ecw-reg-message {
	display: none;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.ecw-reg-message--success {
	background-color: #ecfdf5;
	color: #047857;
}
.ecw-reg-message--error {
	background-color: #fef2f2;
	color: #b91c1c;
}
.ecw-reg-message--info {
	background-color: #eff6ff;
	color: #1d4ed8;
}
