:root {
  --ink: #161823;
  --muted: #747474;
  --line: #dedede;
  --soft: #f1f1f1;
  --pink: #fe2c55;
}

* { box-sizing: border-box; }

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

body {
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; cursor: pointer; }

.screen {
  min-height: 100svh;
  position: relative;
  padding: 46px 8.1% 118px;
  overflow: hidden;
}

.topbar { height: 54px; position: relative; display: flex; align-items: center; justify-content: space-between; }
.topbar h1 { margin: 0; position: absolute; left: 50%; transform: translateX(-50%); font-size: 47px; line-height: 1; letter-spacing: -1.4px; }
.icon-button { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; color: inherit; text-decoration: none; }
.close-icon { width: 42px; height: 42px; position: relative; }
.close-icon::before, .close-icon::after { content: ""; position: absolute; top: 20px; left: 0; width: 48px; height: 5px; border-radius: 4px; background: var(--ink); }
.close-icon::before { transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.back-icon { width: 30px; height: 30px; border-left: 5px solid var(--ink); border-bottom: 5px solid var(--ink); transform: rotate(45deg); margin-left: 8px; }
.help-icon { width: 66px; height: 66px; border: 6px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 42px; font-weight: 700; line-height: 1; }

.chooser { padding-top: 83px; text-align: center; }
.chooser h2 { margin: 0; font-size: 68px; line-height: 1; letter-spacing: -2px; }
.chooser .intro { max-width: 990px; margin: 62px auto 65px; color: var(--muted); font-size: 45px; line-height: 1.18; letter-spacing: -.6px; }
.signup .chooser { padding-top: 47px; }
.signup .chooser .intro { margin-top: 67px; margin-bottom: 67px; }

.choices { display: grid; gap: 37px; }
.choice { min-height: 138px; width: 100%; border: 3px solid var(--line); border-radius: 25px; background: #fff; display: flex; align-items: center; position: relative; padding: 0 32px; font-size: 45px; font-weight: 700; }
.choice .brand { width: 112px; flex: 0 0 112px; display: grid; place-items: center; margin-right: 14px; }
.choice > span:last-child { flex: 1; text-align: center; padding-right: 75px; }
.choice.simple { justify-content: center; }
.choice.simple span { padding: 0; }
.person { width: 38px; height: 38px; position: relative; background: var(--ink); border-radius: 50%; margin: 0 35px 26px 8px; }
.person::after { content: ""; position: absolute; left: -12px; top: 42px; width: 64px; height: 34px; border-radius: 50% 50% 20% 20%; background: var(--ink); }
.facebook { width: 48px; height: 48px; border-radius: 50%; background: #287be0; color: white; font-size: 47px; font-family: Arial; line-height: 55px; text-align: center; font-weight: 700; }
.google { width: 48px; height: 48px; font-size: 44px; line-height: 48px; font-weight: 700; font-family: Arial; letter-spacing: -5px; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 25% 43%, #fbbc05 43% 63%, #ea4335 63% 82%, #4285f4 82% 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.google::first-letter { color: inherit; }
.apple { width: 42px; height: 48px; color: #11131c; }
.apple-logo { display: block; width: 100%; height: 100%; object-fit: contain; }

.legal { position: absolute; left: 7%; right: 7%; bottom: 159px; margin: 0; color: #92939a; font-size: 31px; line-height: 1.27; text-align: center; }
.legal strong, .legal a { color: #252630; font-weight: 400; text-decoration: none; }
.bottom-link { position: absolute; left: 0; right: 0; bottom: 0; min-height: 118px; padding: 32px 20px; border-top: 1px solid var(--line); background: #fafafa; text-align: center; font-size: 43px; }
.bottom-link button { border: 0; background: transparent; font-size: inherit; }
.bottom-link a, .bottom-link button { color: var(--pink); font-weight: 700; text-decoration: none; }

.form-page { padding-left: 8.1%; padding-right: 8.1%; }
.form { padding-top: 58px; }
.tabs { display: grid; grid-template-columns: 1fr; border-bottom: 3px solid #d0d0d0; margin-bottom: 154px; }
.tab { border: 0; background: transparent; color: #b6b6b9; padding: 0 0 31px; font-size: 42px; font-weight: 700; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom: 6px solid var(--ink); margin-bottom: -3px; }
.fields { display: grid; gap: 64px; }
.field { width: 100%; border: 0; border-bottom: 3px solid #dedee0; outline: none; padding: 0 0 39px; color: var(--ink); font-size: 46px; }
.field::placeholder { color: #b2b2b6; opacity: 1; }
.forgot { border: 0; background: transparent; text-align: left; padding: 0; font-size: 42px; font-weight: 700; }
.submit { width: 100%; height: 138px; margin-top: 65px; border: 0; border-radius: 14px; background: #f0f0f0; color: #b1b1b5; font-size: 46px; font-weight: 700; }
.submit.ready { background: var(--pink); color: #fff; }

.info { padding: 70px 9%; text-align: center; }
.info h2 { font-size: 42px; margin: 0 0 25px; }
.info p { color: var(--muted); font-size: 26px; line-height: 1.45; }
.info button { border: 0; background: transparent; color: var(--pink); font-weight: 700; }

@media (max-width: 900px) {
  .screen { padding: 12px 7% 64px; }
  .topbar { height: 40px; }
  .topbar h1 { font-size: 20px; }
  .help-icon { width: 23px; height: 23px; border-width: 2px; font-size: 15px; }
  .close-icon { transform: scale(.38); transform-origin: center; }
  .chooser, .signup .chooser { padding-top: 22px; }
  .chooser h2 { font-size: 31px; letter-spacing: -.5px; }
  .chooser .intro, .signup .chooser .intro { margin: 30px auto 27px; font-size: 20px; line-height: 1.15; letter-spacing: 0; }
  .choices { gap: 17px; margin: 0 4%; }
  .choice { height: 61px; min-height: 61px; border-width: 1px; border-radius: 10px; padding: 0 10px; font-size: 20px; font-weight: 700; white-space: nowrap; }
  .choice .brand { width: 38px; flex: 0 0 38px; margin: 0 3px 0 0; }
  .choice .brand.person { width: 38px; flex-basis: 38px; margin: 0 3px 0 0; background: transparent; border-radius: 0; }
  .choice > span:last-child { padding-right: 10px; }
  .person { width: 38px; height: 32px; margin: 0; background: transparent; border-radius: 0; }
  .person::before { content: ""; position: absolute; left: 6px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); }
  .person::after { left: 2px; top: 15px; width: 22px; height: 12px; }
  .choice .brand.facebook { width: 35px; height: 35px; flex-basis: 35px; border-radius: 50%; font-size: 34px; line-height: 40px; }
  .choice .brand.google { width: 31px; height: 31px; flex-basis: 31px; font-size: 29px; line-height: 31px; letter-spacing: -3px; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 25% 43%, #fbbc05 43% 63%, #ea4335 63% 82%, #4285f4 82% 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
  .choice .brand.google::first-letter { color: inherit; }
  .choice .brand.apple { width: 28px; height: 30px; flex-basis: 28px; }
  .legal { bottom: 70px; font-size: 11px; line-height: 1.28; }
  .bottom-link { min-height: 63px; padding: 17px 5px; font-size: 15px; }
  .screen:not(.signup) .chooser .intro { margin: 30px auto 22px; font-size: 18px; }
  .screen:not(.signup) .choices { gap: 12px; }
  .screen:not(.signup) .choice { height: 48px; min-height: 48px; font-size: 20px; }
  .screen:not(.signup) .choice .brand.facebook { width: 30px; height: 30px; flex-basis: 30px; font-size: 29px; line-height: 34px; }
  .screen:not(.signup) .choice .brand.google { width: 27px; height: 27px; flex-basis: 27px; font-size: 25px; line-height: 27px; }
  .screen:not(.signup) .choice .brand.apple { width: 24px; height: 26px; flex-basis: 24px; }
  .form { padding-top: 24px; }
  .form-page { padding-left: 8.1%; padding-right: 8.1%; }
  .tabs { margin-bottom: 69px; }
  .tab { font-size: 19px; padding-bottom: 14px; }
  .fields { gap: 27px; }
  .field { font-size: 20px; padding-bottom: 18px; }
  .forgot { font-size: 19px; }
  .submit { height: 62px; margin-top: 27px; font-size: 20px; }
}