:root {
  font-family: system-ui, "Microsoft YaHei UI", sans-serif;
  color: #eef4f4;
  background: #111a1d;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 0, #203337, transparent 60%);
}

.card {
  width: min(100%, 420px);
  padding: clamp(24px, 7vw, 36px);
  border: 1px solid #33494e;
  border-radius: 18px;
  background: #192427;
  box-shadow: 0 24px 70px #0005;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1cb64;
  font-size: 18px;
  font-weight: 700;
}

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

label {
  display: block;
  margin: 16px 0 7px;
  color: #d0dddd;
}

input, button {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
}

input {
  padding: 0 12px;
  border: 1px solid #51666a;
  background: #111a1d;
}

button {
  margin-top: 22px;
  border: 0;
  background: #67d4bd;
  color: #10201f;
  font-weight: 600;
  cursor: pointer;
}

button:hover:enabled { background: #82e3ce; }
button:disabled { opacity: 0.65; cursor: wait; }

:focus-visible {
  outline: 2px solid #82e3ce;
  outline-offset: 3px;
}

#message {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: #f0c86a;
}

#profile { text-align: center; }
#display-name { font-size: 20px; font-weight: 600; }
#account, #loading { color: #a7b7ba; }

#avatar {
  border: 2px solid #67d4bd;
  border-radius: 50%;
  object-fit: cover;
}
