/* Premium Google authentication entry point for mr.pharmacist. */

body.mrph-auth-v12 .mrph-google-auth {
  display: grid;
  gap: 15px;
  margin-bottom: 2px;
}

body.mrph-auth-v12 .mrph-google-auth-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  overflow: hidden;
  color: #17384b !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%) !important;
  border: 1px solid #d8e6ec !important;
  border-radius: 12px !important;
  box-shadow:
    0 8px 22px rgba(6, 32, 50, .055),
    inset 0 1px 0 rgba(255, 255, 255, .95) !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800 !important;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

body.mrph-auth-v12 .mrph-google-auth-button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(40, 200, 223, .10), transparent 62%);
  transition: opacity .18s ease;
  pointer-events: none;
}

body.mrph-auth-v12 .mrph-google-auth-button:hover {
  transform: translateY(-1px);
  border-color: #bfd7df !important;
  background: #ffffff !important;
  box-shadow:
    0 13px 29px rgba(6, 32, 50, .09),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

body.mrph-auth-v12 .mrph-google-auth-button:hover::before {
  opacity: 1;
}

body.mrph-auth-v12 .mrph-google-auth-button:active {
  transform: translateY(0);
}

body.mrph-auth-v12 .mrph-google-auth-button:focus-visible {
  outline: none;
  border-color: rgba(40, 200, 223, .80) !important;
  box-shadow: 0 0 0 4px rgba(40, 200, 223, .12) !important;
}

body.mrph-auth-v12 .mrph-google-auth-icon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

body.mrph-auth-v12 .mrph-google-auth-label {
  position: relative;
  z-index: 1;
  direction: auto;
  unicode-bidi: isolate;
}

body.mrph-auth-v12 .mrph-auth-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #8a9aa7;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.mrph-auth-v12 .mrph-auth-divider::before,
body.mrph-auth-v12 .mrph-auth-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, #dde8ec);
}

body.mrph-auth-v12 .mrph-auth-divider::after {
  background: linear-gradient(90deg, #dde8ec, transparent);
}

body.mrph-auth-v12 .mrph-google-auth-notice {
  border-color: rgba(40, 200, 223, .22) !important;
  background: rgba(9, 53, 72, .96) !important;
  box-shadow: 0 18px 44px rgba(4, 28, 43, .24) !important;
}

@media (max-width: 680px) {
  body.mrph-auth-v12 .mrph-google-auth-button {
    min-height: 52px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mrph-auth-v12 .mrph-google-auth-button,
  body.mrph-auth-v12 .mrph-google-auth-button::before {
    transition: none;
  }
}

/* Final responsive correction: constrain the Google mark on every viewport. */
html body.mrph-auth-current-v90 .mrph-google-auth-icon {
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
}

html body.mrph-auth-current-v90 .mrph-google-auth-label {
  display: inline-block !important;
  white-space: nowrap !important;
}

/* Laptop and requested desktop mode use the split desktop interface. */
@media (min-width: 900px) and (max-width: 1099px) {
  html body.mrph-auth-current-v90 {
    display: grid !important;
    place-items: center !important;
    padding: 18px !important;
  }

  html body.mrph-auth-current-v90 .auth-layout {
    display: grid !important;
    grid-template-columns: minmax(320px, .84fr) minmax(500px, 1.16fr) !important;
    width: min(1180px, calc(100vw - 36px)) !important;
    min-height: min(820px, calc(100dvh - 36px)) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid rgba(7, 52, 73, .09) !important;
    border-radius: 34px !important;
    background: rgba(255, 255, 255, .76) !important;
    box-shadow: 0 34px 86px rgba(4, 31, 48, .16), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  }

  html body.mrph-auth-current-v90 .auth-visual {
    width: auto !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    padding: 38px !important;
    border-radius: 33px 0 0 33px !important;
    box-shadow: none !important;
  }

  html[dir="rtl"] body.mrph-auth-current-v90 .auth-visual {
    border-radius: 0 33px 33px 0 !important;
  }

  html body.mrph-auth-current-v90 .auth-visual > .brand {
    gap: 14px !important;
    padding: 0 0 21px !important;
  }

  html body.mrph-auth-current-v90 .auth-visual .logo-mark {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px !important;
    border-radius: 17px !important;
    font-size: 24px !important;
  }

  html body.mrph-auth-current-v90 .auth-visual .brand-title {
    font-size: 22px !important;
  }

  html body.mrph-auth-current-v90 .auth-visual .brand-subtitle {
    max-width: none !important;
    margin-top: 5px !important;
    font-size: 7.5px !important;
    letter-spacing: .105em !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-story {
    inset-inline: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    width: auto !important;
    transform: translateY(-50%) !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-story > .badge {
    min-height: 34px !important;
    padding: 0 15px !important;
    font-size: 8.5px !important;
    letter-spacing: .14em !important;
  }

  html body.mrph-auth-current-v90 .auth-panel {
    display: grid !important;
    place-items: center !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 34px 38px !important;
    background: radial-gradient(circle at 96% 4%, rgba(39, 199, 218, .10), transparent 20rem), linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(244, 249, 251, .93)) !important;
  }

  html body.mrph-auth-current-v90 .auth-card {
    width: 100% !important;
    max-width: 510px !important;
    padding: 30px 32px 28px !important;
    border-radius: 27px !important;
  }

  html body.mrph-auth-current-v90 .auth-card::before {
    width: 88px !important;
    height: 4px !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-card-head {
    margin: 0 0 19px !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-card-head > span {
    margin: 0 0 5px !important;
    font-size: 8px !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-card-head h2 {
    margin: 0 0 6px !important;
    font-size: 35px !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-card-head p {
    max-width: 410px !important;
    font-size: 12.5px !important;
  }

  html body.mrph-auth-current-v90 .auth-tabs {
    gap: 5px !important;
    margin: 0 0 14px !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  html body.mrph-auth-current-v90 .auth-tabs button {
    min-height: 46px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
  }

  html body.mrph-auth-current-v90 .auth-card .form,
  html body.mrph-auth-current-v90 .mrph-google-auth {
    gap: 10px !important;
  }

  html body.mrph-auth-current-v90 .mrph-google-auth-button {
    min-height: 50px !important;
    padding: 0 16px !important;
    border-radius: 13px !important;
    font-size: 13.5px !important;
    gap: 11px !important;
  }

  html body.mrph-auth-current-v90 .mrph-auth-divider {
    gap: 12px !important;
    min-height: 14px !important;
    font-size: 9px !important;
  }

  html body.mrph-auth-current-v90 .auth-card .form-row {
    gap: 5px !important;
  }

  html body.mrph-auth-current-v90 .auth-card .form-row label {
    font-size: 11.5px !important;
  }

  html body.mrph-auth-current-v90 .auth-card .input,
  html body.mrph-auth-current-v90 form[data-form="auth"] input,
  html body.mrph-auth-current-v90 .auth-card .btn {
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 13px !important;
  }

  html body.mrph-auth-current-v90 .auth-card .btn {
    font-size: 13.5px !important;
  }
}

@media (min-width: 900px) and (max-height: 760px) {
  html body.mrph-auth-current-v90 .auth-layout {
    min-height: 700px !important;
  }

  html body.mrph-auth-current-v90 .auth-panel {
    padding-block: 24px !important;
  }

  html body.mrph-auth-current-v90 .auth-card {
    padding-block: 25px !important;
  }
}
