/*
 * /signup in a phone's browser (the builder, November 1, 2026: « aligne-la »):
 * the look of the app's own sign-up screen (signup_screen.dart, PlainFormStyle):
 * the lavender bar with ✕, « Créer un compte Jangolo », each field
 * under its name, the terms sentence, the blue button, « ou », Google, then
 * « Déjà un compte ? Se connecter ». Below 1100 px; auth-pc.css takes over from
 * there, and the phone app's pages (?mobile=1) keep their look.
 */

.site-auth-phone-title {
  display: none;
}

.site-auth-page.site-mobile-auth .site-login-app-header {
  display: none;
}

@media (max-width: 1099.98px) {
  body.site-auth-page:not(.site-mobile-auth) {
    background: #ffffff;
    color: #11111f;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-topbar,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-footer,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-box h1,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-note,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-socials-desktop,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-socials-mobile,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-check input {
    display: none;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-main {
    flex: 1;
    display: block;
    padding: 32px 24px 30px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-box {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-phone-title {
    display: block;
    margin: 0 0 34px;
    color: #11111f;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Each field under its name, 28 px apart. */
  body.site-auth-page:not(.site-mobile-auth) .site-auth-field {
    margin: 0 0 28px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-field > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    display: block;
    margin: 0 0 8px;
    color: #5b5b66;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-field .site-required {
    color: #d33030;
    font-weight: 400;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-field input {
    height: 48px;
    border: 1px solid #dedee2;
    border-radius: 9px;
    color: #11111f;
    font-size: 16px;
    font-weight: 400;
    padding: 0 48px 0 16px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-field input::placeholder {
    color: #6b7280;
    font-weight: 400;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-field input:focus {
    border-color: #11111f;
    box-shadow: none;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-password button {
    top: auto;
    bottom: 7px;
    right: 8px;
    transform: none;
  }

  /* An error shows above the terms, as in the app. */
  body.site-auth-page:not(.site-mobile-auth) .site-status {
    order: 8;
  }

  /* The sentence is the acceptance, as in the app (the box is ticked by the page's script). */
  body.site-auth-page:not(.site-mobile-auth) .site-auth-check {
    order: 9;
    display: block;
    margin: 0 0 34px;
    color: #11111f;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-check a {
    color: #1d74bb;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-submit {
    order: 10;
    height: 52px;
    border-radius: 12px;
    background: #0085ff;
    font-size: 16px;
    font-weight: 600;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-submit:hover {
    background: #0074e0;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-or {
    order: 11;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #6b7280;
    font-size: 14px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-or::before,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-or::after {
    flex: 1;
    height: 1px;
    background: #dedee2;
    content: "";
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-google {
    order: 12;
    display: block;
    margin: 0;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-google .site-social {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #dedee2;
    border-radius: 12px;
    color: #11111f;
    font-size: 16px;
    font-weight: 500;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-google .site-social img {
    width: 20px;
    height: 20px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-switch {
    order: 13;
    display: block;
    margin: 12px 0 0;
    color: #11111f;
    font-size: 15px;
    text-align: center;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-pc-switch a {
    color: #0085ff;
    font-weight: 600;
    text-decoration: none;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-lang {
    order: 14;
    margin: 16px 0 0;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-lang a {
    color: #0085ff;
    font-weight: 500;
  }
}
