.login-brand__mark {
  display: grid;
  place-items: center;
  width: min(280px, 82%);
}

.login-brand__mark img {
  width: 100%;
}

.login-brand__trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #e4eee9;
  font-size: .75rem;
  font-weight: 700;
}

.login-brand__trust span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9eadf;
  color: var(--forest);
  font-size: .7rem;
}

.trusted-device {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px !important;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7faf8;
  cursor: pointer;
}

.trusted-device input {
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 1px 0 0;
  padding: 0;
}

.trusted-device span,
.trusted-device strong,
.trusted-device small {
  display: block;
}

.trusted-device strong {
  color: var(--ink);
  font-size: .83rem;
}

.trusted-device small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.4;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  gap: 9px;
  font-size: .95rem;
}

.login-submit > span {
  font-size: 1.1rem;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.security-note > span {
  margin-top: 5px;
  color: #2c785f;
  font-size: .6rem;
}

@media (max-width: 699px) {
  .guest-body {
    background: #fff;
  }

  .guest-main {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .login-layout {
    width: 100%;
    min-height: 100dvh;
    grid-template-rows: auto 1fr;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand {
    min-height: 205px;
    padding: calc(22px + env(safe-area-inset-top)) 22px 22px;
    background: linear-gradient(155deg, #0f352d, #1c5144);
  }

  .login-brand__mark {
    width: min(210px, 64vw);
  }

  .login-brand p {
    margin: 8px 0 0;
  }

  .login-brand__trust {
    margin-top: 12px;
    padding-block: 7px;
  }

  .login-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-top: -20px;
    padding: 28px 22px calc(26px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #fff;
  }

  .login-panel h1 {
    margin-bottom: 8px;
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }

  .login-panel > .muted {
    margin: 0;
    line-height: 1.5;
  }

  .form-stack {
    gap: 16px;
    margin-top: 23px;
  }

  .form-stack label:not(.trusted-device) {
    font-size: .8rem;
  }

  .form-stack input:not([type=checkbox]) {
    min-height: 53px;
    border-radius: 13px;
    font-size: 16px;
  }

  .password-wrap button {
    top: 7px;
    right: 7px;
    bottom: 7px;
    padding-inline: 10px;
  }

  .security-note {
    margin-top: auto;
    padding-top: 24px;
  }
}
