/* Login and register: blue all the way down, not just behind the card. */
.page--login {
  background-color: var(--primary);
}

/* Login and register: the logo and card centred on the page (docs/adr/0038). */
.page--login .hero .container {
  display: flex;
  justify-content: center;
}

/* The login and register cards (docs/adr/0032). */
.login-card {
  --focus: var(--black);
  max-width: 26rem;
  margin-right: auto;
  margin-left: auto;
  padding: 1.5rem;
  border: 0.25rem solid var(--black);
  border-radius: 0.5rem;
  box-shadow: 0.375rem 0.375rem var(--black);
  background-color: var(--white);
  color: var(--black);
}

/* The page's h1 (docs/adr/0076), at the size it's always been. */
.login-card__heading {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.login-card .form {
  max-width: none;
}

.login-card .form__input {
  width: 100%;
}

.login-card__error {
  margin-bottom: 1.25rem;
}

.login-card__switch {
  margin-top: 1.5rem;
}

/* Continue with Google / Microsoft / Apple, "or", then Continue with email. */
.social-sign-in__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.social-sign-in__divider::before,
.social-sign-in__divider::after {
  content: "";
  flex-grow: 1;
  border-top: 0.125rem solid var(--border);
}

.social-sign-in__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.button--social {
  display: block;
  width: 100%;
  background-color: var(--white);
  text-align: center;
}

.button--social:hover,
.button--social:focus-visible {
  background-color: var(--tertiary);
}

/*
 * Continue with Google / Microsoft as their own buttons, from their branding
 * guides (docs/adr/0077): each one's logo, text colour, 1px border, corners
 * and weight on white (their light themes). Ours: Noto Sans, "Continue
 * with ...", full width with the logo and words centred, one text size.
 * Their colours are theirs, so they're here, not tokens in app.css.
 */
.sign-in-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 0.0625rem solid var(--sign-in-border);
  border-radius: var(--sign-in-radius, 0);
  background-color: var(--white);
  color: var(--sign-in-text);
  font-size: 0.9375rem;
  font-weight: var(--sign-in-weight);
  line-height: 1.25rem;
  text-decoration: none;
}

.sign-in-button:hover {
  background-color: var(--row-stripe);
}

.sign-in-button__logo {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* Google: 4px corners, 10px from the "G" to the words, Medium. */
.sign-in-button--google {
  --sign-in-border: #747775;
  --sign-in-text: #1f1f1f;
  --sign-in-weight: 500;
  --sign-in-radius: 0.25rem;
  gap: 0.625rem;
}

/* Microsoft: square corners, 41px tall, a 21px logo, Semibold. */
.sign-in-button--microsoft {
  --sign-in-border: #8c8c8c;
  --sign-in-text: #5e5e5e;
  --sign-in-weight: 600;
  min-height: 2.5625rem;
}

.sign-in-button--microsoft .sign-in-button__logo {
  width: 1.3125rem;
  height: 1.3125rem;
}

/*
 * Discord (docs/adr/0081): its Blurple, on white as the others are - a
 * solid Blurple button would outshine Google's, which its guide says mustn't
 * happen - with its symbol in colour, 4px corners, Semibold, and black words.
 */
.sign-in-button--discord {
  --sign-in-border: #5865f2;
  --sign-in-text: #000;
  --sign-in-weight: 600;
  --sign-in-radius: 0.25rem;
}

.sign-in-button--discord .sign-in-button__logo {
  width: 1.5rem;
  height: 1.125rem;
}

.social-sign-in__email {
  display: block;
  width: 100%;
  text-align: center;
}

/* Dev only: sign in as a sample user (docs/adr/0032). */
.dev-login {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 0.125rem dashed var(--border);
}

.dev-login__heading {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.dev-login__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Please confirm your email address, on every page until you do. */
.verify-banner {
  border-bottom: 0.0625rem solid var(--alert-border);
  background-color: var(--alert-background);
  color: var(--alert-text);
}

.verify-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.verify-banner .button {
  background-color: var(--white);
}

.verify-banner .button:hover,
.verify-banner .button:focus-visible {
  background-color: var(--black);
  color: var(--white);
}

.button--small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}
