/**
 * Page authentification investisseurs.
 */

.nut-inv-auth {
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: calc(100vh - 80px);
	background: linear-gradient(155deg, #030740 0%, var(--nut-navy, #050a5e) 40%, #0a1860 100%);
}

.nut-inv-auth--full .nut-inv-auth__layout {
	max-width: 1280px;
	margin: 0 auto;
}

.nut-inv-auth__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(380px, 500px);
	min-height: calc(100vh - 80px);
}

.nut-inv-auth__brand {
	padding: clamp(2.5rem, 5vw, 4rem);
	background: transparent;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.nut-inv-auth__brand::before {
	content: '';
	position: absolute;
	top: -20%;
	left: -15%;
	width: min(420px, 55vw);
	height: min(420px, 55vw);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(57, 181, 74, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.nut-inv-auth__brand::after {
	content: '';
	position: absolute;
	bottom: -30%;
	right: -10%;
	width: min(380px, 50vw);
	height: min(380px, 50vw);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(57, 181, 74, 0.18) 0%, transparent 70%);
	pointer-events: none;
}

.nut-inv-auth__logo-link {
	display: inline-block;
	margin-bottom: 2rem;
	position: relative;
	z-index: 1;
}

.nut-inv-auth__logo {
	display: block;
	max-width: min(220px, 55vw);
	height: auto;
	/* Logo badge déjà contrasté — pas de filtre invert */
	filter: none;
}

.nut-inv-auth__eyebrow {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nut-green, #39b54a);
	position: relative;
	z-index: 1;
}

.nut-inv-auth__title {
	margin: 0 0 0.85rem;
	font-family: 'Quicksand', sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
	position: relative;
	z-index: 1;
}

.nut-inv-auth__lead {
	margin: 0 0 1.5rem;
	max-width: 42ch;
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
	position: relative;
	z-index: 1;
}

.nut-inv-auth__features {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	position: relative;
	z-index: 1;
}

.nut-inv-auth__features li {
	position: relative;
	padding-left: 1.35rem;
	margin-bottom: 0.55rem;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.88);
}

.nut-inv-auth__features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--nut-green, #39b54a);
}

.nut-inv-auth__back {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	position: relative;
	z-index: 1;
}

.nut-inv-auth__back:hover {
	color: #fff;
}

.nut-inv-auth__panel {
	padding: clamp(2rem, 4vw, 3rem);
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 1.25rem 0 0 1.25rem;
	box-shadow: -12px 0 48px rgba(5, 10, 94, 0.15);
	margin: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) 0;
}

.nut-inv-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem;
	margin-bottom: 1.5rem;
	padding: 0.3rem;
	background: var(--nut-surface, #f7f8fc);
	border-radius: 999px;
	border: 1px solid var(--nut-border, #e4e6f0);
}

.nut-inv-auth__tab {
	padding: 0.65rem 1rem;
	border: none;
	border-radius: 999px;
	background: transparent;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--nut-text-muted, #5a5a6e);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nut-inv-auth__tab.is-active {
	background: var(--nut-navy, #050a5e);
	color: #fff;
	box-shadow: 0 4px 14px rgba(5, 10, 94, 0.2);
}

.nut-inv-auth__tabpanel {
	display: none;
}

.nut-inv-auth__tabpanel.is-active {
	display: block;
}

.nut-inv-auth__panel-title {
	margin: 0 0 0.35rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--nut-navy, #050a5e);
}

.nut-inv-auth__panel-desc {
	margin: 0 0 1.25rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--nut-text-muted, #5a5a6e);
}

.nut-inv-auth__form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.nut-inv-auth__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}

.nut-inv-auth__field label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--nut-navy, #050a5e);
}

.nut-inv-auth__field label .required {
	color: #b32d2e;
}

.nut-inv-auth__field input,
.nut-inv-auth__field select,
.nut-inv-auth__field textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--nut-border, #d0d2dc);
	border-radius: 0.5rem;
	font-family: 'Open Sans', sans-serif;
	font-size: 0.88rem;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.nut-inv-auth__field input:focus,
.nut-inv-auth__field select:focus,
.nut-inv-auth__field textarea:focus {
	outline: none;
	border-color: var(--nut-green, #39b54a);
	box-shadow: 0 0 0 3px rgba(57, 181, 74, 0.15);
}

.nut-inv-auth__field--full {
	grid-column: 1 / -1;
}

.nut-inv-auth__field--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.nut-inv-auth__remember {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: var(--nut-text-muted, #5a5a6e);
	cursor: pointer;
}

.nut-inv-auth__remember input {
	width: auto;
}

.nut-inv-auth__lost {
	font-size: 0.82rem;
	color: var(--nut-navy, #050a5e);
	text-decoration: underline;
}

.nut-inv-auth__field--checkbox label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.8rem;
	line-height: 1.45;
	cursor: pointer;
}

.nut-inv-auth__field--checkbox input {
	width: auto;
	margin-top: 0.15rem;
	flex-shrink: 0;
}

.nut-inv-auth__field--honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nut-inv-auth__submit {
	width: 100%;
	margin-top: 0.25rem;
	box-shadow: 0 4px 16px rgba(57, 181, 74, 0.3);
}

.nut-inv-auth__submit:hover {
	box-shadow: 0 6px 20px rgba(57, 181, 74, 0.4);
	transform: translateY(-1px);
}

.nut-inv-auth__status {
	margin: 0;
	font-size: 0.82rem;
	min-height: 1.2em;
}

.nut-inv-auth__status.is-success {
	color: #1a7a32;
}

.nut-inv-auth__status.is-error {
	color: #b32d2e;
}

.nut-inv-auth__switch {
	margin: 1.25rem 0 0;
	font-size: 0.82rem;
	color: var(--nut-text-muted, #5a5a6e);
	text-align: center;
}

.nut-inv-auth__switch-btn {
	border: none;
	background: none;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	color: var(--nut-navy, #050a5e);
	text-decoration: underline;
	cursor: pointer;
}

.nut-inv-auth__state {
	text-align: center;
	padding: 1rem 0;
}

.nut-inv-auth__state h2 {
	margin: 0 0 0.65rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 1.35rem;
	color: var(--nut-navy, #050a5e);
}

.nut-inv-auth__state p {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--nut-text-muted, #5a5a6e);
}

.nut-inv-auth__state--pending h2 {
	color: #9a6700;
}

.nut-inv-auth__state--rejected h2 {
	color: #b32d2e;
}

@media (max-width: 900px) {
	.nut-inv-auth {
		min-height: auto;
	}

	.nut-inv-auth__layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.nut-inv-auth__brand {
		padding: 2rem 1.25rem 1.5rem;
	}

	.nut-inv-auth__features {
		margin-bottom: 1rem;
	}

	.nut-inv-auth__panel {
		padding: 1.5rem 1.25rem 2.5rem;
		margin: 0 1rem 1.5rem;
		border-radius: 1.15rem;
		box-shadow: 0 12px 40px rgba(5, 10, 94, 0.12);
	}

	.nut-inv-auth__grid {
		grid-template-columns: 1fr;
	}
}
