/**
 * GOCOREIT — moduli di accesso e registrazione.
 *
 * Vivono dentro il tema del sottosito, quindi valgono le stesse regole del
 * modulo prenotazioni: prima si azzera quello che il tema impone a campi e
 * pulsanti, poi si ricostruisce. Le regole stanno in un ambito a tripla
 * classe per avere la meglio su Astra e Kadence senza usare !important.
 */

.gcauth.gcauth.gcauth {
	--gca-ink: #16202b;
	--gca-muted: #67788c;
	--gca-line: #e2e8ef;
	--gca-paper: #ffffff;
	--gca-surface: #f6f8fa;
	--gca-accent: #0f7f72;
	--gca-accent-text: #ffffff;
	--gca-danger: #b3261e;
	--gca-radius: 10px;

	box-sizing: border-box;
	width: 100%;
	max-width: 27rem;
	margin-inline: auto;
	color: var(--gca-ink);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.gcauth.gcauth.gcauth *,
.gcauth.gcauth.gcauth *::before,
.gcauth.gcauth.gcauth *::after {
	box-sizing: border-box;
}

.gcauth.gcauth.gcauth input,
.gcauth.gcauth.gcauth button {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: none;
	margin: 0;
	min-width: 0;
	max-width: 100%;
	box-shadow: none;
	text-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.gcauth.gcauth.gcauth button {
	width: auto;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	line-height: inherit;
	cursor: pointer;
}

.gcauth.gcauth.gcauth button::before,
.gcauth.gcauth.gcauth button::after {
	content: none;
}

.gcauth.gcauth.gcauth :focus-visible {
	outline: 2px solid var(--gca-accent);
	outline-offset: 2px;
}

.gcauth.gcauth.gcauth .gcauth__card {
	padding: 2rem;
	border: 1px solid var(--gca-line);
	border-radius: var(--gca-radius);
	background: var(--gca-paper);
}

.gcauth.gcauth.gcauth .gcauth__title {
	margin: 0 0 0.35rem;
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.2;
}

.gcauth.gcauth.gcauth .gcauth__sub {
	margin: 0 0 1.5rem;
	color: var(--gca-muted);
	font-size: 0.9375em;
}

.gcauth.gcauth.gcauth .gcauth__form {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.gcauth.gcauth.gcauth .gcauth__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 1rem;
}

.gcauth.gcauth.gcauth .gcauth__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.gcauth.gcauth.gcauth .gcauth__field > span {
	font-size: 0.8125em;
	font-weight: 500;
	color: var(--gca-muted);
}

.gcauth.gcauth.gcauth .gcauth__field input {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--gca-line);
	border-radius: 7px;
	background: var(--gca-paper);
	color: var(--gca-ink);
	/* Sotto i 16px iOS ingrandisce la pagina al primo tocco. */
	font-size: max(1rem, 0.9375em);
}

.gcauth.gcauth.gcauth .gcauth__field input:focus {
	border-color: var(--gca-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gca-accent) 18%, transparent);
}

.gcauth.gcauth.gcauth .gcauth__field small {
	font-size: 0.8125em;
	color: var(--gca-muted);
}

.gcauth.gcauth.gcauth .gcauth__check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.9375em;
	cursor: pointer;
}

.gcauth.gcauth.gcauth .gcauth__check input {
	width: 1.1rem;
	height: 1.1rem;
	flex: none;
	margin-top: 0.15rem;
	accent-color: var(--gca-accent);
	-webkit-appearance: auto;
	appearance: auto;
}

.gcauth.gcauth.gcauth .gcauth__btn {
	width: 100%;
	padding: 0.85rem 1.25rem;
	border: 1px solid var(--gca-accent);
	border-radius: 7px;
	background: var(--gca-accent);
	color: var(--gca-accent-text);
	font-size: 1em;
	font-weight: 600;
	text-align: center;
	transition: filter 0.15s ease;
}

.gcauth.gcauth.gcauth .gcauth__btn:hover {
	filter: brightness(0.92);
}

.gcauth.gcauth.gcauth .gcauth__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--gca-line);
	font-size: 0.9375em;
}

.gcauth.gcauth.gcauth .gcauth__links a {
	color: var(--gca-accent);
	text-decoration: none;
}

.gcauth.gcauth.gcauth .gcauth__links a:hover {
	text-decoration: underline;
}

.gcauth.gcauth.gcauth .gcauth-notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 0.9rem;
	border-left: 3px solid var(--gca-danger);
	border-radius: 0 7px 7px 0;
	background: color-mix(in srgb, var(--gca-danger) 8%, var(--gca-paper));
	color: var(--gca-danger);
	font-size: 0.9375em;
}

.gcauth.gcauth.gcauth .gcauth-notice--success {
	border-left-color: var(--gca-accent);
	background: color-mix(in srgb, var(--gca-accent) 8%, var(--gca-paper));
	color: #0b5f56;
}

/* Trappola per i robot: fuori schermo, non display:none, che alcuni saltano. */
.gcauth.gcauth.gcauth .gcauth__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.gcauth.gcauth.gcauth .gcauth__card {
		padding: 1.4rem;
	}
}
