/*
 * Sign in with Apple and Google in the app (screens 3 and 4 of docs/planning/15-push-native-screens.html, templates/layout/_social_buttons.html.twig):
 * two pill-shaped buttons of 52px above the form, in the colours the two brands prescribe (the tokens --apple-* and --google-* of the look), then the
 * line "of met je e-mailadres". Only in an app. The marks are the files of the brands; the mark of Apple takes the colour of the text of its button.
 */

@layer components {
  /* The alert for the sentences of the sign-in (it is hidden until there is one) and the buttons, 12px apart. */
  .social {
    display: grid;
    gap: var(--s-3);
  }

  .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 var(--s-4);
    border-radius: var(--r-pill);
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  .social-btn svg {
    flex: none;
  }

  .social-btn--apple {
    border: 0;
    background: var(--apple-bg);
    color: var(--apple-fg);
  }

  .social-btn--apple svg {
    width: 18px;
    height: 22px;
  }

  .social-btn--google {
    border: 1px solid var(--google-border);
    background: var(--google-bg);
    color: var(--google-fg);
    font-size: 1rem;
    font-weight: 500;
  }

  .social-btn--google svg {
    width: 20px;
    height: 20px;
  }

  .social-btn:active {
    opacity: 0.8;
  }

  @media (hover: hover) and (pointer: fine) {
    .social-btn:hover {
      opacity: 0.88;
    }
  }

  /* "of met je e-mailadres": a line on each side of the words. */
  .or {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin: var(--s-4) 0;
    color: var(--muted);
    font-size: 0.875rem;
  }

  .or::before,
  .or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /*
   * Confirming without a password (screens 8 and 9): the note at the top of Mijn gegevens, the sentence under a button that asks for the sheet, and the
   * short text of a block that is done in the app.
   */
  .signed-with {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    /* inside the margins of the blocks of the form under it (.form-sec), as screen 8 draws it */
    margin: var(--s-3) var(--s-4) 0;
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    background: var(--surface-2);
    font-size: 0.9375rem;
  }

  .signed-with__mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .signed-with__mark--apple {
    background: var(--apple-bg);
    color: var(--apple-fg);
  }

  .signed-with__mark--apple svg {
    width: 13px;
    height: 16px;
  }

  .signed-with__mark--google {
    background: var(--surface);
  }

  .signed-with__mark--google svg {
    width: 18px;
    height: 18px;
  }

  .via {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: var(--s-2) 0 0;
    color: var(--muted);
    font-size: 0.875rem;
  }

  .via svg {
    width: 12px;
    height: 15px;
  }

  .lead-s {
    margin: 0 0 var(--s-3);
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
  }
}
