:root {
  color-scheme: light dark;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #55585f;
  --border: #e4e4e7;
  --accent: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1b1b1e;
    --text: #f2f2f3;
    --text-muted: #a6a8b0;
    --border: #2c2c30;
    --accent: #5b9bff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

header.top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

header.top .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

header.top .name {
  font-weight: 600;
  font-size: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

h1 {
  font-size: 26px;
  margin: 0 0 4px;
}

h2 {
  font-size: 18px;
  margin: 32px 0 10px;
  padding-top: 4px;
}

h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p, li {
  font-size: 15px;
  color: var(--text);
}

.effective-date {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

ul {
  padding-left: 20px;
}

a {
  color: var(--accent);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.links a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.links a span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

footer {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-muted);
}

.lang {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.lang a {
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

/* Pagina di recupero password */
.cta {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  opacity: 0.9;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}
