/**
 * Styles du formulaire Gate – Access Code Gate
 *
 * Design : carte centrée, minimaliste, responsive.
 */

/* ─── Reset minimal ─────────────────────────────────────────────────── */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ─── Body ───────────────────────────────────────────────────────────── */
.acg-body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 24px;
	background: #f0f2f5;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #1d2939;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* ─── Container ──────────────────────────────────────────────────────── */
.acg-container {
	width: 100%;
	max-width: 440px;
}

/* ─── Card ───────────────────────────────────────────────────────────── */
.acg-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 36px 36px;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.06),
		0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.acg-header {
	text-align: center;
	margin-bottom: 28px;
}

.acg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: #eef2ff;
	color: #4f46e5;
	margin-bottom: 20px;
}

.acg-title {
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 8px;
}

.acg-subtitle {
	font-size: 14px;
	color: #6b7280;
}

/* ─── Alerts ─────────────────────────────────────────────────────────── */
.acg-alert {
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 20px;
	line-height: 1.4;
}

.acg-alert--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.acg-alert--info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* ─── Form ───────────────────────────────────────────────────────────── */
.acg-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ─── Field ──────────────────────────────────────────────────────────── */
.acg-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.acg-field label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.acg-field input {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #111827;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	outline: none;
}

.acg-field input:focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
	background: #ffffff;
}

.acg-field input::placeholder {
	color: #9ca3af;
}

/* Code input – style mono, centré, plus gros */
#acg-code {
	text-align: center;
	font-family: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono",
		Menlo, Consolas, monospace;
	font-size: 28px;
	letter-spacing: 0.35em;
	padding: 14px 16px;
}

/* ─── Button ─────────────────────────────────────────────────────────── */
.acg-btn {
	width: 100%;
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #4f46e5;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.acg-btn:hover {
	background: #4338ca;
}

.acg-btn:active {
	transform: scale(0.98);
}

.acg-btn:focus-visible {
	outline: 2px solid #4f46e5;
	outline-offset: 2px;
}

/* ─── Back link ──────────────────────────────────────────────────────── */
.acg-back {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
}

.acg-back a {
	color: #6b7280;
	text-decoration: none;
	transition: color 0.15s ease;
}

.acg-back a:hover {
	color: #4f46e5;
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.acg-footer {
	text-align: center;
	margin-top: 24px;
	font-size: 13px;
	color: #9ca3af;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.acg-card {
		padding: 32px 24px 28px;
		border-radius: 12px;
	}

	.acg-title {
		font-size: 20px;
	}

	#acg-code {
		font-size: 24px;
	}
}
