/* ═══════════════════════════════════════════════════
   Registration Form — Astelija
═══════════════════════════════════════════════════ */

.mil-reg-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 48px 16px 80px;
	min-height: 60vh;
}

.mil-reg-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
	padding: 40px 40px 36px;
	width: 100%;
	max-width: 520px;
}

/* ── Header ──────────────────────────────────────── */

.mil-reg-header {
	margin-bottom: 28px;
}

.mil-reg-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
}

.mil-reg-subtitle {
	font-size: 14px;
	color: #888;
	margin: 0;
}

/* ── Notices ─────────────────────────────────────── */

.mil-reg-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 20px;
}

.mil-reg-notice[hidden] {
	display: none;
}

.mil-reg-notice svg {
	flex-shrink: 0;
	margin-top: 1px;
}

.mil-reg-notice--success {
	background: #f0faf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.mil-reg-notice--error {
	background: #fff5f5;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.mil-reg-notice--info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.mil-reg-notice a {
	color: inherit;
	font-weight: 600;
}

/* ── Form ────────────────────────────────────────── */

.mil-reg-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mil-reg-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ── Floating label fields ───────────────────────── */

.mil-reg-field {
	position: relative;
}

.mil-reg-input {
	width: 100%;
	box-sizing: border-box;
	padding: 22px 14px 8px;
	border: 1.5px solid #d6d3d0;
	border-radius: 8px;
	font-size: 15px;
	color: #1a1a1a;
	background: #faf9f6;
	outline: none;
	transition: border-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.mil-reg-input:focus {
	border-color: #d4af37;
	background: #fff;
}

.mil-reg-input.mil-reg-invalid {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.mil-reg-checkbox--invalid .mil-reg-checkbox-mark {
	border-color: #e53e3e;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.mil-reg-label {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: #999;
	pointer-events: none;
	transition: top 0.18s, font-size 0.18s, color 0.18s;
}

.mil-reg-input:focus ~ .mil-reg-label,
.mil-reg-input:not(:placeholder-shown) ~ .mil-reg-label {
	top: 10px;
	transform: none;
	font-size: 11px;
	color: #d4af37;
	font-weight: 600;
	letter-spacing: 0.4px;
}

.mil-reg-required {
	color: #e53e3e;
}

/* ── Divider ─────────────────────────────────────── */

.mil-reg-divider {
	border-top: 1px solid #ede9e3;
	margin: 0;
}

/* ── Checkboxes ──────────────────────────────────── */

.mil-reg-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.mil-reg-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.mil-reg-checkbox-mark {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid #d6d3d0;
	border-radius: 5px;
	background: #faf9f6;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.18s, background 0.18s;
	margin-top: 1px;
}

.mil-reg-checkbox-mark::after {
	content: '';
	display: none;
	width: 11px;
	height: 7px;
	border-left: 2px solid #1a1a1a;
	border-bottom: 2px solid #1a1a1a;
	transform: rotate(-45deg) translateY(-1px);
}

.mil-reg-checkbox input[type="checkbox"]:checked ~ .mil-reg-checkbox-mark {
	background: #d4af37;
	border-color: #d4af37;
}

.mil-reg-checkbox input[type="checkbox"]:checked ~ .mil-reg-checkbox-mark::after {
	display: block;
}

.mil-reg-checkbox-text {
	font-size: 14px;
	color: #555;
	line-height: 1.55;
}

.mil-reg-checkbox-text a {
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mil-reg-checkbox-text a:hover {
	color: #d4af37;
}

/* ── Submit button ───────────────────────────────── */

.mil-reg-btn {
	width: 100%;
	padding: 16px;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mil-reg-btn:hover:not(:disabled) {
	background: #2a2a2a;
}

.mil-reg-btn:active:not(:disabled) {
	transform: scale(0.99);
}

.mil-reg-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mil-reg-btn-loader svg {
	animation: mil-reg-spin 0.8s linear infinite;
}

@keyframes mil-reg-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ── Login link ──────────────────────────────────── */

.mil-reg-login-link {
	text-align: center;
	font-size: 14px;
	color: #888;
	margin: 0;
}

.mil-reg-login-link a {
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 540px) {
	.mil-reg-card {
		padding: 28px 20px 24px;
	}

	.mil-reg-row--split {
		grid-template-columns: 1fr;
	}
}
