/* Desktop login background — 20260722
   Loaded by index.html only; mobile and the authenticated app keep their current UI. */
@media (min-width: 901px) {
  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) {
    min-height: 100vh;
    min-height: 100dvh;
    background:
      linear-gradient(90deg, rgba(3, 46, 99, .10), rgba(3, 46, 99, .02) 48%, rgba(0, 80, 105, .10)),
      url("assets/customer-login-ocean-port-20260722.webp") center center / cover fixed no-repeat !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .customer-hero-banner {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .wrap {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px 24px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #loginBox,
  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #versionBox {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 34px 40px !important;
    border: 1px solid rgba(255, 255, 255, .88) !important;
    border-top: 6px solid #0098ad !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .965) !important;
    box-shadow: 0 28px 78px rgba(1, 31, 56, .30) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #versionBox {
    max-width: 580px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerLoginPanel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .login-polish-head {
    margin-bottom: 20px;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .login-polish-logo {
    width: 108px !important;
    height: 108px !important;
    margin-bottom: 15px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .login-polish-title {
    font-size: 32px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .login-polish-subtitle {
    margin: 10px 0 22px;
    font-size: 16px;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerLoginPanel > label:not(.remember-login-row) {
    margin-top: 15px;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerLoginPanel .input {
    min-height: 50px !important;
    padding: 13px 14px !important;
    font-size: 16px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #loginBtn {
    min-height: 52px !important;
    font-size: 17px !important;
  }

  /* Desktop dùng chung cơ chế chuyển Đăng nhập / Đăng ký đã có trên mobile. */
  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in):not(.customer-mobile-register-active) #customerRegisterPanel {
    display: none !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in).customer-mobile-register-active #customerLoginPanel {
    display: none !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in).customer-mobile-register-active #customerRegisterPanel {
    display: block !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .customer-mobile-register-open {
    display: block !important;
    width: 100% !important;
    min-height: 50px !important;
    margin-top: 12px !important;
    border: 1px solid #93c5fd !important;
    background: #fff !important;
    color: #0758b7 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .customer-mobile-register-open:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in).customer-mobile-register-active .customer-mobile-login-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 0 18px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerRegisterPanel {
    margin-top: 0;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerRegisterPanel > hr {
    display: none;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerRegisterPanel > h3 {
    margin: 0 0 8px;
    color: #032e63;
    font-size: 27px;
    text-align: center;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerRegisterPanel > p.muted {
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.5;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #customerRegisterPanel .register-formgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 18px !important;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .wrap {
    justify-content: flex-start;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #loginBox,
  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) #versionBox {
    padding: 26px 34px !important;
  }

  body[data-customer-view="desktop"].customer-ui-v2:not(.customer-app-logged-in) .login-polish-logo {
    width: 88px !important;
    height: 88px !important;
  }
}
