/* Customer login on a phone: only the login box, full width.
   Loaded by login.cfm alone; needs the viewport tag top.cfm adds for this page.
   Desktop is untouched - everything here is inside the media query. */
@media (max-width: 700px) {
  html, body { background: #eef3f5; min-width: 0; }

  /* Header bar, side menu, "data as of" banner, footer. */
  .header, .left-part, .right-part .message, #footer { display: none; }

  /* The 1400px desktop shell and the 1182px content column, released. */
  #mainwrapper, #main, #middlerwrapper, .right-part {
    width: auto; float: none; margin: 0; background: transparent;
  }

  /* The box in the middle of the screen, up and down as well as across - it
     is all there is on the page. dvh where known, so the phone app's (or a
     browser's) toolbars do not push it off centre. */
  body { margin: 0; }
  .right-part {
    display: flex; flex-direction: column; justify-content: center;
    min-height: 100vh; min-height: 100dvh; box-sizing: border-box; padding: 16px 0;
  }

  .login-box {
    float: none; width: auto; max-width: 400px; box-sizing: border-box;
    margin: 0 auto;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(20, 30, 50, .12);
  }
  @supports (width: calc(100% - 32px)) {
    .login-box { width: calc(100% - 32px); }
  }
  .login-title { float: none; font-size: 20px; }

  .login-field-box, .login-field-box-bot {
    float: none; width: auto; box-sizing: border-box; padding: 18px 20px;
  }
  .login-field-box span, .login-field-box span label { float: none; display: block; }
  /* 16px: below that iPhone zooms the page when the field is tapped. */
  .login-field-box span input {
    float: none; width: 100%; box-sizing: border-box; font-size: 16px; padding: 12px 10px;
  }
  .login-field-box .forgot-pass { display: inline-block; float: right; margin-top: 8px; }

  .login-field-box-bot { text-align: center; }
  .login-field-box-bot .sign-in-btn {
    float: none; display: block; width: 100%; margin: 14px 0 10px; padding: 12px; font-size: 17px;
  }
  .login-field-box-bot span { float: none; display: inline-flex; align-items: center; gap: 6px; }
}
