:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #0c0614;
  color: #f9f3ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 15%, #55228a9c, transparent 42%),
    radial-gradient(ellipse at 90% 80%, #6a17796b, transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 35px, #c995ff14 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, #c995ff14 35px 36px);
}
.panel {
  width: min(100%, 455px);
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid #ad73e0;
  border-radius: 26px;
  background: #180d26;
  box-shadow: 0 0 48px #892bf24d, 0 20px 70px #0009;
}
h1 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.04; margin: 12px 0 26px; letter-spacing: -.045em; }
.icon { font-size: 2.4rem; }
form { display: grid; gap: 9px; }
label { font-weight: 700; }
input, button, a { font: inherit; }
input {
  width: 100%;
  min-height: 48px;
  margin-bottom: 9px;
  padding: 10px 14px;
  border: 1px solid #a67acb;
  border-radius: 10px;
  background: #0d0717;
  color: inherit;
}
button, .game-link {
  display: block;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: #c49aff;
  color: #1d0d31;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button:hover, .game-link:hover { background: #e0c8ff; }
:focus-visible { outline: 3px solid #f2bdff; outline-offset: 4px; }
.error { color: #ffc0d8; }
.game-card { border: 1px solid #79519b; border-radius: 16px; padding: 16px; margin: 18px 0; background: #27143a; }
.game-card h2 { margin: 0 0 12px; font-size: 1.25rem; }
.exit { background: transparent; color: #e0c8ff; border: 1px solid #a67acb; }
.exit:hover { background: #37204b; }

.login-page {
  background: #622b91 url("/sfondo-natale.png") center / cover no-repeat;
}
.login-page .panel {
  background: #180d26e8;
  border-color: #e1baf3;
}

a:not(.game-link) { color: #eac6ff; }
.panel small { color: #e0c8ef; }
