/*
 * /login and /signup on a computer: the look of the app's PC sign-in pages
 * (canvas « Jangolo sur PC », row « Connexion — nouveau design », November 9,
 * 2026; lib/features/auth/presentation/widgets/pc_auth_page.dart): the
 * Jangolo logo above one 440 px white card in the middle of a light grey
 * page, the next step under the card, the language, privacy and WhatsApp help
 * at the bottom. From 1100 px wide (PcLayout.minWidth); narrower screens and
 * the phone app's pages (?mobile=1) keep their look.
 */

.site-auth-pc-panel,
.site-auth-pc-title,
.site-auth-pc-sub,
.site-auth-pc-or,
.site-auth-pc-google,
.site-auth-pc-switch,
.site-auth-pc-hint,
.site-auth-pc-foot,
.site-pc-only {
  display: none;
}

@media (min-width: 1100px) {
  body.site-login-app-page:not(.site-mobile-auth),
  body.site-auth-page:not(.site-mobile-auth) {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
    background: #f4f6fa;
    color: #1f2433;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  body:not(.site-mobile-auth) .site-login-app-header,
  body:not(.site-mobile-auth) .site-auth-topbar,
  body:not(.site-mobile-auth) .site-login-footer,
  body:not(.site-mobile-auth) .site-auth-footer {
    display: none;
  }

  /* The logo above the card (the panel's brand, without its sentences). */
  body:not(.site-mobile-auth) .site-auth-pc-panel {
    display: flex;
    justify-content: center;
    flex: none;
    padding: 72px 0 24px;
    background: none;
  }

  .site-auth-pc-pitch,
  .site-auth-pc-domain {
    display: none;
  }

  .site-auth-pc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .site-auth-pc-brand img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .site-auth-pc-brand b {
    display: block;
    color: #071c3f;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.1;
  }

  .site-auth-pc-brand small {
    display: block;
    margin-top: 2px;
    color: #5b6275;
    font-size: 12px;
  }

  /* The card. Room is kept under it for the next step. */
  body.site-login-app-page:not(.site-mobile-auth) .site-login-main,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-main {
    display: block;
    flex: none;
    width: 440px;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-card,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-box {
    position: relative;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    margin: 0 0 66px;
    padding: 40px;
    border: 1px solid #e3e6ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px rgba(16, 24, 40, 0.07);
  }

  body:not(.site-mobile-auth) .site-login-logo,
  body:not(.site-mobile-auth) .site-login-card h1,
  body:not(.site-mobile-auth) .site-login-subtitle,
  body:not(.site-mobile-auth) .site-auth-box h1,
  body:not(.site-mobile-auth) .site-auth-phone-title,
  body:not(.site-mobile-auth) .site-auth-socials-desktop,
  body:not(.site-mobile-auth) .site-auth-socials-mobile,
  body:not(.site-mobile-auth) .site-auth-location,
  body:not(.site-mobile-auth) .site-auth-lang,
  body:not(.site-mobile-auth) .site-required,
  body.site-login-app-page:not(.site-mobile-auth) .site-login-links a:last-child {
    display: none;
  }

  body:not(.site-mobile-auth) .site-auth-pc-title {
    display: block;
    margin: 0;
    color: #1f2433;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.24px;
    line-height: 32px;
  }

  body:not(.site-mobile-auth) .site-auth-pc-sub {
    display: block;
    margin: 4px 0 24px;
    color: #5b6275;
    font-size: 15px;
    line-height: 22px;
  }

  body:not(.site-mobile-auth) .site-pc-only {
    display: inline;
  }

  /* Sign-in: Google, « ou », the e-mail, the password with « Mot de passe
     oublié ? » on its label line, the message, « Se connecter ». */
  body.site-login-app-page:not(.site-mobile-auth) .site-login-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "google" "or" "email" "password" "status" "submit";
    gap: 0;
    margin: 0;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-auth-socials {
    grid-area: google;
    margin: 0;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-auth-socials > span {
    display: none;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-auth-pc-or {
    grid-area: or;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-email {
    grid-area: email;
    margin: 0 0 16px;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-password {
    grid-area: password;
    margin: 0;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-forgot {
    grid-area: password;
    z-index: 1;
    align-self: start;
    justify-self: end;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #1673e0;
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-forgot:hover {
    color: #125fba;
    text-decoration: underline;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-status {
    grid-area: status;
  }

  body:not(.site-mobile-auth) .site-login-form .site-status:not(:empty),
  body:not(.site-mobile-auth) .site-auth-form .site-status:not(:empty) {
    margin: 16px 0 0;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-submit {
    grid-area: submit;
  }

  /* Sign-up keeps its order: Google, « ou », the fields. */
  body.site-auth-page:not(.site-mobile-auth) .site-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  body:not(.site-mobile-auth) .site-auth-pc-google {
    display: flex;
    margin: 0;
  }

  /* Google's button: the card's width, 40 px high like the fields. */
  body:not(.site-mobile-auth) .site-auth-socials .site-google-identity-host[data-google-button-style="wide"],
  body:not(.site-mobile-auth) .site-auth-socials .site-social-google[data-google-button-style="wide"] {
    align-self: stretch;
    width: 100%;
    min-height: 40px;
    height: auto;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
  }

  /* The look of Google's button until its script is there. */
  body:not(.site-mobile-auth) .site-auth-socials .site-social-google[data-google-button-style="wide"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #ffffff;
    color: #3c4043;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
  }

  body:not(.site-mobile-auth) .site-auth-socials .site-social-google[data-google-button-style="wide"] img {
    width: 18px;
    height: 18px;
  }

  body:not(.site-mobile-auth) .site-auth-pc-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #5b6275;
    font-size: 13px;
  }

  .site-auth-pc-or::before,
  .site-auth-pc-or::after {
    flex: 1;
    height: 1px;
    background: #e5e7ee;
    content: "";
  }

  /* Fields: the label above, 40 px, a soft blue ring while typing. */
  body:not(.site-mobile-auth) .site-login-email > span,
  body:not(.site-mobile-auth) .site-login-password > span,
  body:not(.site-mobile-auth) .site-auth-field > span {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 6px;
    overflow: visible;
    clip: auto;
    color: #1f2433;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-field {
    position: relative;
    margin: 0 0 16px;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-email,
  body.site-login-app-page:not(.site-mobile-auth) .site-login-password {
    position: relative;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-email input,
  body.site-login-app-page:not(.site-mobile-auth) .site-login-password input,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-field input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #cfd3dc;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    color: #1f2433;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    padding: 0 12px;
    outline: none;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-password input,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-password input {
    padding-right: 44px;
  }

  /* The label above says what to type: no grey example inside. */
  body.site-login-app-page:not(.site-mobile-auth) .site-login-email input::placeholder,
  body.site-login-app-page:not(.site-mobile-auth) .site-login-password input::placeholder,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-field input::placeholder {
    color: transparent;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-email input:focus,
  body.site-login-app-page:not(.site-mobile-auth) .site-login-password input:focus,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-field input:focus {
    border-color: #1673e0;
    box-shadow: 0 0 0 3px rgba(22, 115, 224, 0.18);
  }

  body:not(.site-mobile-auth) .site-login-password button[data-password-toggle],
  body:not(.site-mobile-auth) .site-auth-password button {
    top: 30px;
    bottom: auto;
    right: 4px;
    width: 36px;
    height: 32px;
    transform: none;
  }

  body:not(.site-mobile-auth) .site-auth-pc-hint {
    display: block;
    margin-top: 6px;
    color: #5b6275;
    font-size: 13px;
    line-height: 18px;
  }

  /* The blue button, 40 px. */
  body.site-login-app-page:not(.site-mobile-auth) .site-login-submit,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-submit {
    height: 40px;
    margin: 24px 0 0;
    border: 0;
    border-radius: 6px;
    background: #1673e0;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-submit:hover,
  body.site-auth-page:not(.site-mobile-auth) .site-auth-submit:hover {
    background: #125fba;
  }

  /* Sign-up: the note and the conditions small, under the fields. */
  body.site-auth-page:not(.site-mobile-auth) .site-auth-note {
    margin: 0 0 12px;
    color: #5b6275;
    font-size: 13px;
    font-weight: 400;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-check {
    color: #5b6275;
    font-size: 13px;
    line-height: 19px;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-check input {
    width: 18px;
    height: 18px;
    accent-color: #1673e0;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-check a {
    color: #1673e0;
    font-weight: 500;
    text-decoration: none;
  }

  body.site-auth-page:not(.site-mobile-auth) .site-auth-submit {
    margin-top: 20px;
  }

  /* « Pas encore de compte ? Créer un compte », « Déjà un compte ? Se
     connecter »: under the card. */
  body.site-login-app-page:not(.site-mobile-auth) .site-login-links,
  body:not(.site-mobile-auth) .site-auth-pc-switch {
    position: absolute;
    top: calc(100% + 24px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    color: #1f2433;
    font-size: 14px;
    text-align: center;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-links a:first-child,
  body:not(.site-mobile-auth) .site-auth-pc-switch a {
    color: #1673e0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-links a:first-child:hover,
  body:not(.site-mobile-auth) .site-auth-pc-switch a:hover {
    color: #125fba;
    text-decoration: underline;
  }

  /* A block, so the space before « Se connecter » stays. */
  body:not(.site-mobile-auth) .site-auth-pc-switch {
    display: block;
  }

  body.site-login-app-page:not(.site-mobile-auth) .site-login-links .site-pc-only {
    color: #1f2433;
    font-weight: 400;
  }

  /* The bottom: the language, the privacy policy, the team's WhatsApp. */
  body:not(.site-mobile-auth) .site-auth-pc-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: auto;
    padding: 32px 0 24px;
    color: #5b6275;
    font-size: 13px;
  }

  .site-auth-pc-foot a {
    color: #5b6275;
    text-decoration: none;
  }

  .site-auth-pc-foot a:hover {
    color: #1f2433;
    text-decoration: underline;
  }

  .site-auth-pc-foot b {
    color: #1f2433;
    font-weight: 500;
  }
}

/* A laptop's short window (1366 × 768): the card starts higher so the blue
   button stays in view. */
@media (min-width: 1100px) and (max-height: 759.98px) {
  body:not(.site-mobile-auth) .site-auth-pc-panel {
    padding-top: 24px;
  }
}
