<div class="flex">
  <button class="btn btn-primary">Login</button>
  <button class="btn btn-register">Register</button>
</div>
body {
  max-width: 600px;
  margin: 0 auto;
  padding: 100px;
  text-align:center;
  background: #ccc;
}

.flex {
  display: flex;
  justify-content:center;
}

.btn {
  align-items: center;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  padding: 16px;
  justify-content: center;
  min-height: 40px;
  font-size: 1.1rem;
  border: 0;
  transition: all 0.2;
  transform: scale(1);

  &-primary {
    background-color: #007dbc;
    color: white;
  }

  &:hover {
    background: red;
    color: white;
  }

  // To fix the issue
  // Change &:focus to &:focus-visible
  &:focus {
    outline-color: #007dbc60;
    outline-offset: 0.5rem;
    transform: scale(1.5);
  }
}

.btn-register {
  margin-left: 48px;
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.