:root {
  --red: #d8323c;
  --ink: #1d2129;
  --ink-3: #86909c;
  --line: #e5e6eb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f5f7;
  color: var(--ink);
  font:
    14px/1.6 'PingFang SC',
    'Microsoft YaHei',
    Arial,
    sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
main {
  width: min(380px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 32px 28px;
  box-shadow: 0 10px 30px #0000000d;
}
.org-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  flex: none;
}
h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.org-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}
nav {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  gap: 20px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 9px 14px;
  color: inherit;
}
nav button {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ink-3);
}
nav .selected {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 16px 0;
}
input {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline-color: var(--red);
}
input:hover {
  border-color: #c9cdd4;
}
.primary {
  width: 100%;
  height: 40px;
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  margin-top: 6px;
  font-weight: 500;
}
.primary:hover {
  background: #c42a34;
}
.hint,
footer {
  font-size: 12px;
  color: var(--ink-3);
}
main > .hint {
  text-align: center;
  line-height: 1.8;
  margin: 18px 0 0;
}
footer {
  text-align: center;
  padding: 0 20px 24px;
}
#message {
  color: var(--red);
  font-size: 13px;
  margin: 12px 0 0;
}
#message:empty {
  display: none;
}
#memberships button {
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h2 {
  font-size: 16px;
}
#legacy {
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--line);
}
@media (max-width: 420px) {
  .wrap {
    padding: 24px 16px;
  }
  main {
    padding: 26px 24px;
  }
}
