/**
 * FK Member Registry - Registration form supplementary styles.
 *
 * Most styling is handled by Tailwind utility classes in the template.
 * This file provides supplementary styles for elements that need
 * custom treatment beyond what Tailwind classes offer.
 *
 * @package FK_Member_Registry
 */

/* Hide Alpine x-cloak elements until Alpine initialises */
[x-cloak] {
	display: none !important;
}

/* Logo preview wrapper — ensure relative positioning for remove button */
.fk-mr-logo-preview-wrap {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
}

/* Smooth form field focus transitions */
.fk-mr-registration input:focus,
.fk-mr-registration select:focus,
.fk-mr-registration textarea:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(46, 134, 171, 0.25);
}

/* Ensure the file input fits within mobile viewports */
.fk-mr-registration input[type="file"] {
	max-width: 100%;
}

/* Spinner animation for the loading state */
@keyframes fk-mr-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.fk-mr-registration .animate-spin {
	animation: fk-mr-spin 1s linear infinite;
}

/* Drag-and-drop zone active state */
.fk-mr-registration [class*="border-dashed"]:focus-within {
	border-color: #2E86AB;
	background-color: rgba(46, 134, 171, 0.05);
}
