/* The sign-in page: what it adds to the styles of the account page (../account/account.css). */

/* The button of a provider follows that provider's guidelines; as tall as the other buttons. */
.provider {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

/* On the account page the buttons follow the form of the code. */
form + .provider,
.provider + .provider {
  margin-top: 12px;
}

/* Apple: black with a white logo and title, inverted on a dark page. */
.provider--apple {
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

/* Google: its light theme — white, a grey outline, the logo in its own colours. */
.provider--google {
  border-color: rgb(116, 119, 117);
  background: rgb(255, 255, 255);
  color: rgb(31, 31, 31);
}

@media (prefers-color-scheme: dark) {
  .provider--apple {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
  }

  /* Google's dark theme. */
  .provider--google {
    border-color: rgb(142, 145, 143);
    background: rgb(19, 19, 20);
    color: rgb(227, 227, 227);
  }
}

.provider-logo {
  width: 18px;
  height: 20px;
}

.provider--apple .provider-logo {
  width: 16px;
  margin-top: -3px;
}

.return {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: rgb(46, 42, 39);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
