:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
}
main {
  width: 100%;
  max-width: 380px;
}
header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #262626;
}
h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0 0 16px; color: #a3a3a3; font-size: 14px; line-height: 1.5; }
label { display: block; font-size: 13px; color: #a3a3a3; margin-bottom: 6px; }
input[type="text"], input[type="password"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #262626;
  border-radius: 6px;
  font-size: 15px;
}
input:focus { outline: 2px solid #fff; outline-offset: 1px; }
button, a.store-link, a.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
button.primary, a.btn-link {
  justify-content: center;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
button.ghost {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  background: transparent;
  color: #a3a3a3;
  border: 1px solid #262626;
  font-size: 13px;
}
button.ghost:hover { color: #fff; border-color: #525252; }
ul.stores { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
a.store-link {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #262626;
}
a.store-link:hover { border-color: #737373; }
a.store-link[data-last-store="true"] { border-color: #fff; }
.meta { font-size: 12px; color: #a3a3a3; font-weight: 400; }
.error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #7f1d1d;
  border-radius: 6px;
  background: #1a0606;
  color: #fecaca;
  font-size: 14px;
}
.hidden { display: none; }