* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1e1e1e;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Pages ── */
.page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.page.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Logo ── */
.logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: up 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

img.logo {
  height: 36px;
  opacity: 0.9;
  display: block;
  position: relative;
  filter: drop-shadow(0 0 14px rgba(200, 200, 200, 0.3));
}

/* ── Coming soon ── */
.coming {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(210, 210, 210, 0.55);
  animation: up 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: 28px;
}

/* ── Link button ── */
button.link {
  background: none;
  border: none;
  color: rgba(210, 210, 210, 0.3);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: color 0.2s;
  animation: up 1s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

button.link:hover {
  color: rgba(210, 210, 210, 0.7);
}

/* ── Login card ── */
.card {
  width: 280px;
  background: #0000003b;
  border: 1px solid rgba(, 210, 210, 0.10);
  border-radius: 6px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* backdrop-filter: blur(16px); */
}

.card img.logo {
  margin-bottom: 28px;
  animation: none;
}

/* ── Input rows ── */
.input-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(210, 210, 210, 0.1);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: rgba(32, 32, 32, 0.4);
  transition: border-color 0.2s;
}

.input-row:focus-within {
  border-color: rgba(210, 210, 210, 0.28);
}

.input-row svg {
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.input-row:focus-within svg {
  opacity: 0.55;
}

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(210, 210, 210, 0.8);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  outline: none;
}

.input-row input::placeholder {
  color: rgba(210, 210, 210, 0.2);
}

/* ── Error text ── */
.err {
  font-size: 10px;
  color: rgba(190, 100, 100, 0.6);
  min-height: 18px;
  margin: 8px 0 12px;
  letter-spacing: 0.03em;
  width: 100%;
}

/* ── Submit button ── */
.btn-submit {
  width: 100%;
  background: rgba(32, 32, 32, 0.5);
  border: 1px solid rgba(210, 210, 210, 0.1);
  border-radius: 4px;
  color: rgba(210, 210, 210, 0.5);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 10px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin-bottom: 20px;
}

.btn-submit:hover {
  background: rgba(210, 210, 210, 0.1);
  border-color: rgba(210, 210, 210, 0.22);
  color: rgba(210, 210, 210, 0.85);
}

/* ── Logged in ── */
#logged .coming {
  margin-bottom: 20px;
  animation: none;
}

/* ── Animations ── */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}