:root {
  color-scheme: light;
  --blue: #2aabee;
  --text: #222;
  --muted: #8a8a8a;
  --line: #e7e7e7;
  --soft: #f4f8fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--text);
  font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  width: min(100%, 420px);
  padding: 48px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logos {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}

.logo {
  width: 64px;
  height: 64px;
  display: block;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: center;
}

.sub, .hint, .error, .done {
  margin: 0;
  text-align: center;
}

.sub {
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
}

.accounts {
  width: 100%;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.account, .other {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.account { background: var(--soft); }

#avatar, .letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
}

#avatar { object-fit: cover; }

.letter {
  display: grid;
  place-items: center;
  background: #2aabee;
  color: #fff;
  font-weight: 650;
}

#account-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  position: relative;
}

.radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
}

.other {
  border: 0;
  border-top: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}

.plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #cfcfcf;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.primary {
  width: min(100%, 300px);
  margin-top: 28px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.primary svg { width: 18px; height: 18px; }

.primary:disabled { opacity: 0.7; }

.text-link {
  margin-top: 18px;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.hint { margin-top: 16px; color: var(--muted); }
.error { margin-top: 12px; color: #e53935; }
.done { margin-top: 16px; color: #2e7d32; }

form {
  width: min(100%, 300px);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
}

form .primary { margin-top: 0; width: 100%; }

[hidden] { display: none !important; }
