@keyframes i18n-reveal-fallback {
  to {
    visibility: visible
  }
}

html.i18n-pending body {
  visibility: hidden;
  animation: i18n-reveal-fallback 0s 3s forwards
}

/* Sketch Home_3_Login: cream canvas, 1000×540 card, Google | email split. */
body:has(.login-page) {
  margin: 0;
  overflow-x: hidden;
  background: #faf5f0;
  color: #282d32;
  font-family: PingFangSC-Regular, "PingFang SC", system-ui, -apple-system, sans-serif;
  line-height: 1.45
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #faf5f0
}

.login-page .topnav~.topr .langdd {
  display: block
}

.login-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.login-card {
  position: relative;
  width: 100%;
  min-height: 540px;
  background: #fff;
  border-radius: 16px
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 70px 48px;
  text-align: center
}

.login-card.is-sent .login-panel {
  visibility: hidden
}

.login-panel h1,
.login-sent h1 {
  margin: 0;
  color: #282d32;
  font-family: PingFangSC-Semibold, "PingFang SC", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4
}

.login-sub {
  margin: 10px 0 0;
  max-width: 800px;
  color: #91969b;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.375
}

.login-page .onbctx {
  margin: 16px 0 0;
  max-width: 640px;
  padding: 10px 14px;
  border: 1px solid #eae6e0;
  border-radius: 12px;
  background: #faf5f0;
  color: #282d32;
  font-size: 15px;
  line-height: 1.45;
  text-align: left
}

.login-methods {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin-top: 40px
}

.login-google,
.login-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(400px, 100%);
  min-height: 240px;
  padding: 40px;
  border-radius: 16px;
  box-sizing: border-box
}

.login-google {
  color: #fff;
  background: #282d32
}

.login-google-copy {
  margin: 0 0 40px;
  max-width: 320px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4
}

.login-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  min-height: 60px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #282d32;
  font-family: PingFangSC-Semibold, "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer
}

.login-google-btn:hover {
  background: #f7f5f2
}

.login-google-btn:disabled {
  opacity: .55;
  cursor: not-allowed
}

.login-fallback {
  margin: 12px 0 0;
  max-width: 320px;
  color: #dce1e6;
  font-size: 13px;
  line-height: 1.4
}

.login-or {
  margin: 0;
  flex: none;
  color: #282d32;
  font-size: 18px;
  line-height: 25px;
  height: 100%;
  padding-top: 40px;
}

.login-email-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(400px, 100%)
}

.login-email {
  width: 100%;
  background: #eae6e0
}

.login-email form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 40px;
  width: 100%;
  max-width: 320px
}

.login-email input {
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #282d32;
  font-family: inherit;
  font-size: 20px;
  line-height: 28px;
  outline: none
}

.login-email input::placeholder {
  color: #9aa3ad
}

.login-email input:focus,
.login-email input:focus-visible {
  box-shadow: 0 0 0 3px rgba(40, 71, 196, .28)
}

.login-email input[aria-invalid="true"] {
  box-shadow: 0 0 0 3px rgba(186, 59, 29, .35)
}

.login-email button {
  width: 100%;
  min-height: 60px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: #ff5a00;
  color: #fff;
  font-family: PingFangSC-Semibold, "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer
}

.login-email button:hover {
  background: #e65100
}

.login-email button:disabled {
  opacity: .55;
  cursor: not-allowed
}

.login-hint {
  margin: 10px 0 0;
  max-width: 320px;
  color: #91969B;;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
  font-weight: 400;
}

.login-email .msg {
  width: 100%;
  max-width: 320px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center
}

.login-email .msg:empty {
  display: none;
  margin: 0
}

.login-email .msg .ok {
  color: #0c7a61
}

.login-email .msg .err {
  color: #ba3b1d
}

.login-unconfigured {
  margin: 40px 0 0;
  color: #5e636b;
  font-size: 16px
}

.login-sent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  text-align: center
}

.login-sent[hidden] {
  display: none
}

.login-sent-mark {
  display: block;
  width: 120px;
  height: 80px;
  margin-bottom: 40px;
  object-fit: contain
}

.login-sent h1 {
  font-size: 24px;
  line-height: 33px
}

.login-sent p {
  margin: 20px 0 0;
  max-width: 600px;
  color: #282d32;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px
}

.login-sent-home {
  margin-top: 28px
}

.login-sent-home a {
  color: #286464;
  text-decoration: underline;
  text-underline-offset: 3px
}

.login-sent-home a:hover,
.login-sent-home a:focus-visible {
  color: #1f5050
}

.login-page .login-legal {
  margin: 20px 0 0;
  max-width: 800px;
  color: #5e636b;
  font-size: 16px;
  line-height: 22px;
  text-align: center
}

.login-card.is-sent~.login-legal {
  visibility: hidden
}

.login-page .login-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px
}

@media (max-width: 700px) {
  .login-page .top .signin {
    display: none
  }
}

@media (max-width: 800px) {
  .login-page main {
    width: min(620px, calc(100% - 32px));
    padding: 28px 0 16px
  }

  .login-card {
    min-height: 0
  }

  .login-panel {
    padding: 28px 20px 32px
  }

  .login-panel h1 {
    font-size: 28px;
    line-height: 1.3
  }

  .login-sub {
    font-size: 16px;
    line-height: 1.45
  }

  .login-methods {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px
  }

  .login-google,
  .login-email,
  .login-email-col {
    width: 100%
  }

  .login-google,
  .login-email {
    min-height: 0;
    padding: 28px 20px
  }

  .login-google-copy {
    margin-bottom: 24px;
    font-size: 18px
  }

  .login-email form {
    gap: 16px
  }

  .login-email input {
    font-size: 16px
  }
}

@media (max-width: 520px) {
  .login-page main {
    width: calc(100% - 24px)
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-google-btn,
  .login-email button {
    transition: none
  }
}

@media (prefers-reduced-transparency: reduce),
(prefers-contrast: more) {
  .login-page > .top {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none
  }
}

@media (prefers-contrast: more) {
  .login-google,
  .login-email,
  .login-card {
    outline: 1px solid currentColor
  }

  .login-email input {
    box-shadow: inset 0 0 0 1px currentColor
  }

  .login-hint,
  .login-page .login-legal,
  .login-sub {
    color: #282d32
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .login-page > .top {
    background: #fff
  }
}

/* Invite still uses the compact login shell. */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box
}

.login-language {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10
}

.login-language .langdd {
  position: relative
}

.login-language .langdd-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  background: none;
  color: var(--mute);
  font: 650 12px inherit;
  cursor: pointer
}

.login-language .langdd-btn:hover {
  color: var(--ink)
}

.login-language .chev {
  width: 10px;
  height: 10px
}

.login-language .langdd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 126px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(26, 35, 51, .14)
}

.login-language .langdd.open .langdd-menu {
  display: block
}

.login-language .langdd-menu button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--r-ctl);
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer
}

.login-language .langdd-menu button:hover,
.login-language .langdd-menu button[aria-selected="true"] {
  color: var(--accent);
  background: var(--tint-wash)
}

.login-shell .card.auth {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 30px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--r-card);
  box-shadow: 0 1px 3px rgba(26, 35, 51, 0.05), 0 12px 32px -16px rgba(26, 35, 51, 0.16)
}

.login-shell .login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.login-shell .auth h1 {
  margin: 0;
  font-size: var(--fs-title1);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25
}

.login-shell .login-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0
}

.login-shell .login-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block
}

.login-shell .auth .sub {
  margin: 10px 0 0;
  font-size: var(--fs-subhead);
  color: var(--mute);
  line-height: 1.45
}

.login-shell .login-hr {
  height: 1px;
  background: var(--line);
  margin: 18px 0
}

.login-shell .onbctx {
  font-size: var(--fs-footnote);
  color: var(--ink);
  background: var(--tint-wash);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 10px 12px;
  margin: 12px 0 0;
  max-width: none;
  line-height: 1.45;
  text-align: left
}

.login-shell .gwrap {
  display: block;
  min-height: 0;
  width: 100%
}

.login-shell .login-fallback {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: var(--fs-footnote);
  line-height: 1.45
}

.login-shell .dev {
  margin-top: 18px
}

.login-shell .dev .or {
  color: var(--mute);
  font-size: var(--fs-caption);
  margin: 14px 0;
  text-align: center;
  font-weight: 500;
  position: relative
}

.login-shell .dev input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  font-size: var(--fs-subhead);
  font-family: inherit;
  margin-bottom: 10px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  box-sizing: border-box
}

.login-shell .dev input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(40, 71, 196, .18)
}

.login-shell .dev button {
  background: var(--accent-fill);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  padding: 13px 22px;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box
}

.login-shell .dev button:hover {
  background: var(--accent-press)
}

.login-shell .dev button:disabled {
  opacity: 0.5;
  cursor: not-allowed
}

.login-shell .dev button:active {
  transform: scale(0.97)
}

.login-shell .hint {
  font-size: var(--fs-footnote);
  color: var(--mute);
  margin-top: 12px;
  line-height: 1.45;
  text-align: center
}

.login-shell .msg {
  font-size: var(--fs-footnote);
  margin-top: 12px;
  line-height: 1.45
}

.login-shell .msg .ok {
  color: var(--jade)
}

.login-shell .msg .err {
  color: var(--verm)
}

@media (max-width:480px) {
  .login-language {
    top: 10px;
    right: 12px
  }

  .login-shell {
    padding: 56px 16px 16px
  }

  .login-shell .card.auth {
    padding: 22px 18px
  }

  .login-shell .auth h1 {
    font-size: var(--fs-title2)
  }
}

.login-shell .login-legal {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mute, #6B7080);
  text-align: center
}

.login-shell .login-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px
}
