/* Page création de compte / connexion — charte ICC Online */

.myicc-auth-page {
	--icc-reg-accent: #1ea5d4;
	--icc-reg-accent-dark: #1894be;
	--icc-reg-ink: #0f172a;
	--icc-reg-muted: #64748b;
	--icc-reg-border: #dbeafe;
	--icc-reg-bg: #f4f9fc;
	--icc-reg-radius: 16px;
	--icc-auth-bg-image:
		radial-gradient(900px 420px at 10% -10%, rgba(30, 165, 212, 0.14), transparent 60%),
		radial-gradient(700px 360px at 100% 0%, rgba(30, 165, 212, 0.08), transparent 55%),
		var(--icc-reg-bg);
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--icc-auth-bg-image);
}

.myicc-auth-page #primary,
.myicc-auth-page .gp-content,
.myicc-auth-page .site-content,
.myicc-auth-page .content-area,
.myicc-register-page #primary,
.myicc-register-page .gp-content,
.myicc-register-page .site-content,
.myicc-register-page .content-area,
.myicc-login-page #primary,
.myicc-login-page .gp-content,
.myicc-login-page .site-content,
.myicc-login-page .content-area {
	max-width: none;
}

.myicc-auth-page .entry-content > p:empty,
.myicc-register-page .entry-content > p:empty,
.myicc-login-page .entry-content > p:empty {
	display: none;
}

.icc-register-page {
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px 48px;
	background: transparent;
}

.icc-register-page *,
.icc-register-page *::before,
.icc-register-page *::after {
	box-sizing: border-box;
}

.icc-register-shell {
	width: min(560px, 100%);
	margin: 0 auto;
}

.icc-register-errors {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 16px;
}

.icc-register-errors .icc-error {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.92rem;
	line-height: 1.45;
}

.icc-register-card {
	width: 100%;
	padding: 28px 28px 24px;
	border: 1px solid rgba(30, 165, 212, 0.18);
	border-radius: var(--icc-reg-radius);
	background: #fff;
	box-shadow:
		0 18px 40px rgba(15, 23, 42, 0.08),
		0 2px 8px rgba(15, 23, 42, 0.04);
}

.icc-register-card__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	margin-bottom: 22px;
}

.icc-register-card__logo img {
	display: block;
	width: auto;
	height: 56px;
	max-width: 180px;
}

.icc-register-card__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 750;
	line-height: 1.2;
	color: var(--icc-reg-ink);
}

.icc-register-card__subtitle {
	margin: 0;
	max-width: 34ch;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--icc-reg-muted);
}

.icc-register-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.icc-register-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.icc-register-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.icc-register-field label {
	font-size: 0.88rem;
	font-weight: 650;
	color: #334155;
}

.icc-register-field input[type="text"],
.icc-register-field input[type="email"],
.icc-register-field input[type="password"] {
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: var(--icc-reg-ink);
	font-size: 15px;
	line-height: 1.35;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.icc-register-field input:focus {
	outline: none;
	border-color: var(--icc-reg-accent);
	box-shadow: 0 0 0 3px rgba(30, 165, 212, 0.18);
}

.icc-register-turnstile {
	display: flex;
	justify-content: center;
	margin-top: 4px;
}

.icc-register-submit {
	margin: 18px 0 0;
	padding: 0;
}

.icc-register-submit input[type="submit"] {
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 13px 18px;
	background: var(--icc-reg-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
	box-shadow: 0 8px 22px rgba(30, 165, 212, 0.28);
}

.icc-register-submit input[type="submit"]:hover,
.icc-register-submit input[type="submit"]:focus-visible {
	background: var(--icc-reg-accent-dark);
	transform: translateY(-1px);
}

.icc-register-footer {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
	text-align: center;
	font-size: 0.95rem;
	color: var(--icc-reg-muted);
}

.icc-register-footer a {
	color: var(--icc-reg-accent);
	font-weight: 650;
	text-decoration: none;
}

.icc-register-footer a:hover,
.icc-register-footer a:focus-visible {
	text-decoration: underline;
}

.icc-register-logged-in {
	max-width: 560px;
	margin: 40px auto;
	padding: 24px;
	border-radius: var(--icc-reg-radius);
	background: #fff;
	border: 1px solid var(--icc-reg-border);
	text-align: center;
	color: var(--icc-reg-muted);
}

.icc-register-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.icc-login-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.icc-register-field--checkbox {
	margin: 0;
}

.icc-register-field--checkbox label {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	font-weight: 550;
	cursor: pointer;
}

.icc-register-field--checkbox input[type="checkbox"] {
	width: auto;
	margin: 0;
	accent-color: var(--icc-reg-accent);
}

.icc-login-forgot {
	margin: 0;
	font-size: 0.92rem;
}

.icc-login-forgot a {
	color: var(--icc-reg-accent);
	font-weight: 650;
	text-decoration: none;
}

.icc-login-forgot a:hover,
.icc-login-forgot a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.icc-register-page {
		padding: 20px 12px 36px;
	}

	.icc-register-card {
		padding: 22px 18px 20px;
	}

	.icc-register-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* Layout plein écran — sans menu, header ni footer GhostPool */
.myicc-auth-page.gp-show-only-content .gp-page-wrapper,
.myicc-auth-page.gp-show-only-content .gp-main-wrapper,
.myicc-auth-page.gp-show-only-content .gp-content-sidebar-wrapper,
.myicc-auth-page.gp-show-only-content .gp-content-wrapper-outer,
.myicc-auth-page.gp-show-only-content .gp-content-wrapper-inner-section,
.myicc-auth-page.gp-show-only-content .gp-content-wrapper-inner,
.myicc-auth-page.gp-show-only-content .gp-page-text {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	flex: 1;
	display: flex;
	flex-direction: column;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.myicc-auth-page.gp-show-only-content .gp-page-wrapper {
	align-items: stretch;
}

.myicc-auth-page.gp-show-only-content .gp-page-title {
	display: none;
}

/* Masquer le sélecteur Weglot sur les pages auth */
.myicc-auth-page .weglot-container,
.myicc-auth-page .country-selector,
.myicc-auth-page wg-language-switcher {
	display: none !important;
}
