:root {
  --page: #202124;
  --card: #0b0b0b;
  --text: #e8eaed;
  --muted: #bdc1c6;
  --divider: #5f6368;
  --avatar-green: #78b93c;
  --focus: #8ab4f8;
  --card-radius: 32px;
  --card-width: 620px;
  --card-height: 640px;
  --content-left: 32px;
  --content-right: 32px;
  --google-sans: "Google Sans", "Roboto", Arial, sans-serif;
  --roboto: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: var(--google-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.card {
  width: min(var(--card-width), calc(100vw - 48px));
  min-height: var(--card-height);
  background: var(--card);
  border-radius: var(--card-radius);
  padding: 56px var(--content-right) 48px var(--content-left);
}

.card[hidden] { display: none !important; }

.card.signin,
.card.identifier {
  min-height: 600px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.logo {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 0 32px 0;
}

h1 {
  margin: 0 0 72px 0;
  color: var(--text);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.7px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  flex: none;
}

.avatar.photo {
  background: #3c4043;
  color: transparent;
  background-image:
    radial-gradient(circle at 50% 30%, #2f3337 0 10px, transparent 10px),
    radial-gradient(circle at 50% 72%, #2f3337 0 20px, transparent 20px),
    linear-gradient(135deg, #d7ccc8, #78909c 45%, #fbc02d 46% 58%, #455a64 59%);
  background-size: cover;
}

footer {
  width: min(var(--card-width), calc(100vw - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 28px 24px;
  color: var(--text);
}

.language {
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 14px/1 var(--google-sans);
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 8px 0;
}

.language svg {
  width: 18px;
  height: 18px;
  color: #9aa0a6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font: 500 14px/1 var(--google-sans);
}

.signin h1 {
  margin-bottom: 30px;
}

.account-pill {
  height: 38px;
  width: max-content;
  max-width: 420px;
  border: 1px solid #9aa0a6;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 3px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.account-pill .avatar {
  width: 30px;
  height: 30px;
  margin: 0;
}

.account-pill svg {
  width: 16px;
  height: 16px;
  color: var(--text);
  margin-left: 8px;
}

.form-area {
  margin-top: 40px;
}

.password-field,
.identifier-field {
  width: 100%;
  height: 58px;
  border: 1px solid #9aa0a6;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: 500 16px/1 var(--google-sans);
  padding: 0 16px;
  outline: none;
}

.password-field::placeholder,
.identifier-field::placeholder {
  color: #bdc1c6;
  opacity: 1;
}

.password-field:focus,
.identifier-field:focus {
  border-color: var(--focus);
}

.show-row {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  color: var(--text);
  font: 700 15px/1 var(--google-sans);
}

.show-row input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #bdc1c6;
  border-radius: 3px;
  background: transparent;
  margin: 0 0 0 6px;
}

.signin-actions,
.identifier-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.try-way,
.create-account {
  color: #a8c7fa;
  text-decoration: none;
  font: 500 16px/1 var(--google-sans);
}

.next-button {
  min-width: 82px;
  height: 42px;
  border: 0;
  border-radius: 24px;
  background: #a8c7fa;
  color: #062e6f;
  font: 500 16px/1 var(--google-sans);
  padding: 0 22px;
}

.identifier h1 {
  margin: 32px 0 20px 0;
}

.intro {
  width: 890px;
  max-width: 100%;
  color: var(--text);
  font: 400 18px/1.45 var(--google-sans);
  letter-spacing: -1px;
  margin: 0;
}

.identifier .form-area {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}

.identifier-link {
  display: inline-block;
  color: #a8c7fa;
  text-decoration: none;
  font: 700 15px/1.25 var(--google-sans);
  letter-spacing: -0.4px;
  margin-top: 22px;
}

.guest-copy {
  margin: 48px 0 0;
  color: #bdc1c6;
  font: 500 15px/1.35 var(--google-sans);
  letter-spacing: -0.6px;
  max-width: 840px;
}

.guest-copy a {
  color: #a8c7fa;
  text-decoration: none;
  font-weight: 700;
}

.identifier-actions {
  margin-top: 40px;
}

@media (max-width: 900px) {
  :root {
    --card-width: calc(100vw - 48px);
    --card-height: 860px;
    --card-radius: 40px;
    --content-left: 36px;
    --content-right: 36px;
  }

  main { padding-top: 48px; }
  .card { width: var(--card-width); }
  h1 { font-size: 52px; margin-bottom: 48px; }
  .logo { width: 72px; height: 72px; margin-bottom: 46px; }
  footer { width: var(--card-width); }
}
