/* =========================================================================
   Sign in / Join modal
   ========================================================================= */

.inaa-auth {
	width: min(460px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--inaa-text, #1b2333);
	font-family: var(--inaa-font);
	box-shadow: 0 24px 60px rgba(9, 18, 43, 0.34);
	overflow: visible;
}

.inaa-auth::backdrop {
	background: rgba(9, 18, 43, 0.62);
	backdrop-filter: blur(2px);
}

.inaa-auth[open] {
	animation: inaa-auth-in 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes inaa-auth-in {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

.inaa-auth * {
	box-sizing: border-box;
}

.inaa-auth__inner {
	max-height: calc(100vh - 48px);
	padding: 30px 30px 32px;
	overflow-y: auto;
	border-radius: 14px;
}

.inaa-auth__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--inaa-text-muted, #5b6478);
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease;
}

.inaa-auth__close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.inaa-auth__close:hover,
.inaa-auth__close:focus-visible {
	background: var(--inaa-off-white, #f5f7fa);
	color: var(--inaa-navy, #14275c);
}

.inaa-auth__title {
	margin: 0 0 18px;
	color: var(--inaa-navy, #14275c);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
}

/* ---------- tabs ---------- */

.inaa-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	margin-bottom: 22px;
	padding: 3px;
	border-radius: 99px;
	background: #eef1f6;
}

.inaa-auth__tab {
	padding: 10px 14px;
	border: 0;
	border-radius: 99px;
	background: transparent;
	color: var(--inaa-text, #1b2333);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease;
}

.inaa-auth__tab.is-active {
	background: var(--inaa-navy, #14275c);
	color: #fff;
}

.inaa-auth__tab:not(.is-active):hover {
	color: var(--inaa-red, #d0111b);
}

.inaa-auth__panel[hidden] {
	display: none;
}

/* ---------- fields ---------- */

.inaa-auth .inaa-field {
	margin: 0 0 14px;
}

.inaa-auth .inaa-field label {
	display: block;
	margin-bottom: 5px;
	color: var(--inaa-navy, #14275c);
	font-size: 0.875rem;
	font-weight: 600;
}

.inaa-auth .inaa-field input,
.inaa-auth .inaa-field select {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--inaa-border, #dde3ed);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--inaa-text, #1b2333);
	font-family: inherit;
	font-size: 1rem;
}

.inaa-auth .inaa-field input:focus-visible,
.inaa-auth .inaa-field select:focus-visible {
	border-color: var(--inaa-navy, #14275c);
	outline: none;
	box-shadow: 0 0 0 3px rgba(20, 39, 92, 0.14);
}

.inaa-auth .inaa-field__hint {
	display: block;
	margin-top: 5px;
	color: var(--inaa-text-muted, #5b6478);
	font-size: 0.8125rem;
}

.inaa-auth .inaa-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.inaa-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 18px;
	font-size: 0.875rem;
}

.inaa-auth .inaa-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--inaa-text, #1b2333);
	font-size: 0.875rem;
}

.inaa-auth__link {
	color: var(--inaa-navy, #14275c);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.inaa-auth__link:hover,
.inaa-auth__link:focus-visible {
	color: var(--inaa-red, #d0111b);
}

.inaa-auth__methods {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid var(--inaa-border, #dde3ed);
	border-radius: 8px;
}

.inaa-auth__methods legend {
	padding: 0 6px;
	color: var(--inaa-navy, #14275c);
	font-size: 0.8125rem;
	font-weight: 700;
}

.inaa-auth__methods .inaa-check {
	display: flex;
	margin-bottom: 8px;
}

.inaa-auth__methods .inaa-check:last-child {
	margin-bottom: 0;
}

.inaa-auth__muted {
	margin: 14px 0 0;
	color: var(--inaa-text-muted, #5b6478);
	font-size: 0.8125rem;
	line-height: 1.55;
}

.inaa-auth__notice {
	margin-bottom: 16px;
}

/* Off-screen rather than display:none — some bots skip hidden inputs. */
.inaa-auth__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.inaa-auth :focus-visible {
	outline: 3px solid var(--inaa-navy, #14275c);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.inaa-auth[open] {
		animation: none;
	}
}

@media (max-width: 480px) {
	.inaa-auth__inner {
		padding: 26px 20px 28px;
	}

	.inaa-auth .inaa-field-row {
		grid-template-columns: 1fr;
	}
}
