:root {
  --bg: #12372a;
  --card: #fffaf2;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #b3261e;
  --gold: #d4a017;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  background: radial-gradient(circle at 50% 0%, #1f5c45, var(--bg));
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
}
.card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.star { color: var(--gold); font-size: 40px; line-height: 1; }
h1 { margin: 8px 0 16px; font-size: 1.6rem; color: var(--accent); }
p { line-height: 1.5; }
.hello { font-weight: 600; }
.partner { font-size: 2rem; font-weight: 700; color: var(--accent); margin: 4px 0 8px; word-break: break-word; }
.hint { color: var(--muted); font-size: .9rem; }
.error { color: var(--accent); font-weight: 600; }
label { display: block; text-align: left; font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.card { position: relative; z-index: 1; }
.pw { position: relative; margin-bottom: 14px; }
.pw input[type] { display: block; margin-bottom: 0; padding-right: 48px; }
.eye {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44px; padding: 0;
  background: transparent; color: var(--muted); border: 0; border-radius: 0 10px 10px 0;
  display: grid; place-items: center;
}
.eye[hidden] { display: none; }
.eye .slash { display: none; }
.eye.off .slash { display: inline; }
.eye:focus-visible { outline: 2px solid var(--accent); }
input[type=password], input[type=text] {
  width: 100%; padding: 12px; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 10px; margin-bottom: 14px;
}
button {
  width: 100%; padding: 12px; font-size: 1rem; font-weight: 600;
  border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer;
}
button.secondary { background: transparent; color: var(--muted); border: 1px solid #ccc; margin-top: 12px; }
.wait { background: #fdecea; color: var(--accent); border-radius: 10px; padding: 10px 12px; }
.wait strong { font-variant-numeric: tabular-nums; }
button:disabled { opacity: .5; cursor: not-allowed; }
.foot { position: relative; z-index: 1; max-width: 420px; text-align: center; color: rgba(255,255,255,.75); font-size: .8rem; }
.foot p { margin: 4px 0; line-height: 1.4; }
.foot a { color: #fff; }
