/* Nem web account entry — quiet, familiar and aligned with the account surface. */

body.route-auth-entry {
  min-height: 100svh;
  padding: 0;
  overflow-x: hidden;
  background: #f5f5f2;
  color: #181816;
}

body.route-auth-entry::before,
body.route-auth-entry::after {
  display: none;
}

.route-auth-entry .auth-top {
  width: min(1080px, calc(100% - 48px));
  min-height: 72px;
  border-bottom: 1px solid rgba(24,24,22,.08);
}

.route-auth-entry .brand {
  gap: 9px;
  color: #181816;
  font-size: 15px;
  font-weight: 660;
  letter-spacing: -.035em;
}

.route-auth-entry .brand__mark {
  width: 36px;
  filter: none;
}

.auth-home-link {
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(24,24,22,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.54);
  color: #57554f;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.auth-home-link:hover {
  border-color: rgba(24,24,22,.15);
  background: #fff;
  color: #181816;
}

.auth-layout {
  width: min(980px, calc(100% - 48px));
  min-height: calc(100svh - 73px);
  margin: 0 auto;
  padding: 64px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: clamp(60px, 9vw, 120px);
}

.auth-story {
  max-width: 430px;
}

.auth-kicker {
  margin: 0 0 12px;
  color: #9b9890;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-story h2 {
  max-width: 8.5em;
  margin: 0;
  color: #181816;
  font-size: clamp(44px, 5.4vw, 64px);
  line-height: .94;
  font-weight: 690;
  letter-spacing: -.065em;
}

.auth-story h2 span {
  color: #98958d;
  font-weight: 650;
}

.auth-story p {
  max-width: 350px;
  margin: 18px 0 0;
  color: #77746d;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.015em;
}

.route-auth-entry .auth-panel {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border: 1px solid rgba(24,24,22,.08);
  border-radius: 20px;
  background: rgba(255,255,253,.9);
  box-shadow: 0 24px 68px rgba(24,24,20,.08);
  backdrop-filter: blur(18px) saturate(115%);
}

.route-auth-entry .card--auth .state {
  width: 100%;
  margin-inline: 0;
}

.route-auth-entry .card--auth h1 {
  margin: 0 0 7px;
  color: #181816;
  font-size: 28px;
  line-height: 1.02;
  font-weight: 680;
  letter-spacing: -.045em;
}

.route-auth-entry .card--auth .note {
  margin-top: 7px;
  color: #85827a;
  font-size: 12px;
  line-height: 1.48;
}

.route-auth-entry .google-button {
  min-height: 48px;
  margin-top: 22px;
  border: 1px solid rgba(24,24,22,.1);
  border-radius: 12px;
  background: #fff;
  color: #25241f;
  font-size: 12px;
  font-weight: 620;
  box-shadow: none;
}

.route-auth-entry .google-button:hover {
  border-color: rgba(24,24,22,.18);
  background: #fafaf7;
  transform: none;
  box-shadow: none;
}

.route-auth-entry .google-mark {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.route-auth-entry .auth-divider {
  margin: 18px 0 6px;
  color: #aaa79f;
  font-size: 10px;
}

.route-auth-entry .auth-divider::before,
.route-auth-entry .auth-divider::after {
  background: rgba(24,24,22,.07);
}

.route-auth-entry .card--auth form {
  margin-top: 10px;
}

.route-auth-entry .field-label {
  margin: 13px 0 6px;
  color: #5e5b54;
  font-size: 11px;
  font-weight: 620;
}

.route-auth-entry .field {
  height: 50px;
  border: 1px solid rgba(24,24,22,.11);
  border-radius: 12px;
  background: #fafaf7;
  color: #181816;
  font-size: 14px;
  box-shadow: none;
}

.route-auth-entry .field::placeholder { color: #aaa79f; }

.route-auth-entry .field:focus {
  border-color: rgba(24,24,22,.32);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24,24,22,.05);
}

.route-auth-entry .state form .button {
  min-height: 48px;
  margin-top: 17px;
  border: 1px solid #181816;
  border-radius: 999px;
  background: #181816;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}

.route-auth-entry .state form .button:hover {
  transform: none;
  background: #2b2b27;
  box-shadow: none;
}

.route-auth-entry .state form .button::after,
.route-auth-entry .auth-panel .button::after {
  display: none;
}

.route-auth-entry .auth-switch {
  margin-top: 17px;
  color: #8b887f;
  font-size: 11px;
}

.route-auth-entry .link {
  color: #4e4b45;
  font-size: 11px;
  font-weight: 620;
  text-decoration: none;
}

.route-auth-entry .link:hover {
  color: #181816;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.route-auth-entry .error {
  margin-top: 9px;
  color: #9b5257;
  font-size: 11px;
}

.auth-legal {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #aaa79f;
  font-size: 10px;
}

.auth-legal a {
  color: #89867e;
  text-decoration: none;
}

.auth-legal a:hover { color: #181816; }

.auth-success-mark {
  width: 38px;
  height: 38px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ecebe6;
  color: #181816;
  font-size: 14px;
  font-weight: 700;
}

.invite-person {
  width: 56px;
  height: 56px;
  font-size: 18px;
  font-weight: 650;
  color: #5f5c55;
}

.route-auth-entry #state-done .actions { margin-top: 20px; }

.route-auth-entry #state-done .button--quiet {
  min-height: 46px;
  border-radius: 999px;
  border-color: rgba(24,24,22,.09);
  background: #ecebe6;
  color: #181816;
  box-shadow: none;
}

.auth-code-lead strong {
  color: #4e4b45;
  font-weight: 620;
}

.code-form { margin-top: 20px !important; }

.code-field {
  padding-left: 16px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 21px !important;
  font-weight: 650;
  letter-spacing: .34em;
  text-indent: .34em;
}

.code-controls {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #8b887f;
}

.code-controls .link { font-size: 10px; }
.code-controls .link:disabled { color: #aaa79f; cursor: default; opacity: 1; }

@media (max-width: 780px) {
  .route-auth-entry .auth-top {
    width: calc(100% - 28px);
    min-height: 64px;
  }

  .auth-layout {
    width: min(100% - 28px, 480px);
    min-height: calc(100svh - 65px);
    padding: 42px 0 56px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .auth-story {
    max-width: 420px;
    padding: 0 4px;
  }

  .auth-story h2 {
    max-width: 10em;
    font-size: clamp(40px, 11vw, 54px);
  }

  .auth-story p {
    margin-top: 14px;
    font-size: 13px;
  }

  .route-auth-entry .auth-panel {
    max-width: 480px;
    padding: 26px 22px 22px;
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .auth-home-link {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .route-auth-entry .brand__mark { width: 32px; }
}

@media (prefers-reduced-transparency: reduce) {
  .route-auth-entry .auth-panel {
    background: #fff;
    backdrop-filter: none;
  }
}
