/* Pagine di accesso area clienti (recupero password). Stesso stile del login. */
	:root {
		--brand: #8b2fd6; --brand-dark: #4b0f8c; --lime: #7ed321; --warn: #f6b31a;
		--ink: #1c2530; --ink-soft: #5b6b7c; --card: #fff; --bg-1: #f6efff; --bg-2: #fbfdf0;
		--border: #dfe6ee; --danger: #d62727; --radius: 14px;
		--shadow: 0 18px 45px -20px rgba(139, 47, 214, .35), 0 4px 12px rgba(20, 30, 40, .06);
	}
	@media (prefers-color-scheme: dark) {
		:root { --card: #161b22; --bg-1: #0d1117; --bg-2: #10151c; --ink: #e6edf3; --ink-soft: #9aa7b5; --border: #2a323c;
			--shadow: 0 18px 45px -20px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.3); }
	}
	* { box-sizing: border-box; }
	html, body { margin: 0; padding: 0; min-height: 100%; }
	body {
		font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
		color: var(--ink); background: linear-gradient(160deg, var(--bg-1), var(--bg-2)) fixed;
		min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
		padding: 24px calc(16px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
		-webkit-font-smoothing: antialiased;
	}
	.wrap { width: 100%; max-width: 400px; }
	.brand { display: flex; justify-content: center; margin-bottom: 26px; }
	.brand img { width: 150px; height: auto; }
	@media (prefers-color-scheme: dark) { .brand img { width: 170px; } }
	.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; }
	h1.title { font-size: 20px; font-weight: 700; margin: 0 0 4px; text-align: center; }
	p.sub { margin: 0 0 24px; text-align: center; color: var(--ink-soft); font-size: 14px; }
	.field { margin-bottom: 18px; }
	.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
	.input-wrap { position: relative; }
	.field input[type=email], .field input[type=text], .field input[type=password] {
		width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--border);
		border-radius: 10px; background: transparent; color: var(--ink); transition: border-color .15s, box-shadow .15s;
	}
	.field input.has-toggle { padding-right: 72px; }
	.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 47, 214, .15); }
	.field input.invalid { border-color: var(--danger); }
	.toggle-pwd { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-soft);
		font: inherit; font-size: 12px; font-weight: 600; padding: 6px 8px; cursor: pointer; border-radius: 6px; }
	.toggle-pwd:hover { background: rgba(139, 47, 214, .08); }
	.btn-login { width: 100%; padding: 13px 16px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
		color: #fff; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; cursor: pointer; margin-top: 6px;
		transition: transform .08s, box-shadow .15s; }
	.btn-login:hover { box-shadow: 0 8px 20px -6px rgba(139, 47, 214, .55); }
	.btn-login:active { transform: translateY(1px); }
	.btn-login:disabled { opacity: .6; cursor: default; }
	.notice { margin-top: 18px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
	.notice.error { background: rgba(214, 39, 39, .1); color: var(--danger); }
	.notice.info { background: rgba(139, 47, 214, .08); color: var(--brand); }
	@media (prefers-color-scheme: dark) { .notice.error { color: #ff8a8a; } .notice.info { color: #c08cf2; } }
	.notice[hidden] { display: none; }
	.help { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
	.help a { color: var(--brand); font-weight: 600; text-decoration: none; }
	.footer { text-align: center; margin-top: 22px; font-size: 12px; color: var(--ink-soft); }
	.footer .credit { margin-top: 6px; font-size: 11px; opacity: .75; }
	.footer .credit a { color: inherit; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
	.footer .credit a:hover { text-decoration: underline; }
	.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

	.card h1.title { margin-bottom: 4px; }
	.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; line-height: 1.4; }
	.notice.ok { background: rgba(79, 191, 75, .12); color: #1d6e1a; }
	@media (prefers-color-scheme: dark) { .notice.ok { color: #7fe07a; } }
	.back { text-align: center; margin-top: 18px; font-size: 13.5px; }
	.back a { color: var(--brand); font-weight: 600; text-decoration: none; }
	.rules { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }
	.rules li { padding: 2px 0; }
	.rules li.ok { color: #2f9e44; }
	.forgot { text-align: right; margin: -6px 0 14px; }
	.forgot a { font-size: 12.5px; color: var(--brand); font-weight: 600; text-decoration: none; }
