/* Customer Registration Form - Modern, polished styling */

.cra-registration-form-wrapper {
	max-width: 440px;
	margin: 2em auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.cra-registration-form-wrapper .cra-form {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 2rem;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.cra-form__field {
	margin-bottom: 1.5rem;
}

.cra-form__field:last-of-type {
	margin-bottom: 0;
}

.cra-form__field label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
	font-size: 0.9375em;
	color: #1e1e1e;
	letter-spacing: -0.01em;
}

.cra-form__field .required {
	color: #c92a2a;
	font-weight: 700;
}

.cra-form__field input[type="text"],
.cra-form__field input[type="email"],
.cra-form__field input[type="password"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid #d4d4d8;
	border-radius: 8px;
	box-sizing: border-box;
	font-size: 1em;
	line-height: 1.4;
	color: #1e1e1e;
	background: #fafafa;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cra-form__field input::placeholder {
	color: #a1a1aa;
}

.cra-form__field input:hover {
	background: #fff;
	border-color: #a1a1aa;
}

.cra-form__field input:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	background: #fff;
}

.cra-form__error {
	display: block;
	color: #c92a2a;
	font-size: 0.8125em;
	margin-top: 0.375em;
	font-weight: 500;
}

.cra-form__error:empty {
	display: none;
}

.cra-form__message--error {
	background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	color: #991b1b;
	font-size: 0.9375em;
}

#cra-form-error:empty {
	display: none;
}

.cra-form__actions {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cra-form__submit {
	display: inline-block;
	background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	border: none;
	padding: 0.75rem 2rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: -0.01em;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cra-form__submit:hover {
	background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
	transform: translateY(-1px);
}

.cra-form__submit:active {
	transform: translateY(0);
}

.cra-form__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.cra-message {
	padding: 1.25rem 1.5rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	font-size: 0.9375em;
	line-height: 1.5;
}

.cra-message--success {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #bbf7d0;
	color: #166534;
}

.cra-message--card {
	background: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.cra-message--success.cra-message--card {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-color: #bbf7d0;
}

.cra-message--error {
	background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
	border: 1px solid #fecaca;
	color: #991b1b;
}
