.pm-mobile-auth a {
  font-weight: 600;
  color: #023047;
}
.rd-navbar-fixed .pm-mobile-auth a:hover {
  color: var(--pm-accent-strong);
}

.page-header {
  background: #f3f3f3;
}

#pm-auth-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

#pm-auth-overlay.active{
  display:flex;
}

.pm-form-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}


.pm-form-container form{
  width:70%;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.pm-form-container h1{
  font-size:34px;
  color:#023047;
}

.pm-form-container input{
  padding:14px;
  border-radius:10px;
  border:1px solid #ccc;
  font-size:16px;
}

.pm-form-container button{
  padding:14px;
  border-radius:30px;
  border:none;
  background:#FB8500;
  color:white;
  font-weight:600;
  cursor:pointer;
}

.pm-overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.pm-auth-container.right-panel-active .pm-overlay-container {
  transform: translateX(-100%);
}

.pm-overlay-container h1{
  font-size:36px;
  margin-bottom:15px;
}

.pm-overlay-container p{
  margin-bottom:25px;
}

.pm-overlay-container .ghost{
  background:transparent;
  border:2px solid white;
  color:white;
  padding:12px 35px;
  border-radius:30px;
}

.pm-auth-error{
  display:none;
  background:#FB8500;
  color:white;
  padding:10px;
  border-radius:6px;
}

.pm-auth-error.active{
  display:block;
}

.pm-legal-note {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 6px;
  line-height: 1.5;
}
.pm-legal-note a,
.pm-legal-note a:visited,
.pm-legal-note a:hover {
  color: #aaa !important;
  text-decoration: underline !important;
  display: inline !important;
  font-size: 11px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  width: auto !important;
}

.pm-overlay-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  color: #ffffff;
}

.pm-overlay-left {
  left: 0;
  transform: translateX(-20%);
}

.pm-auth-container.right-panel-active .pm-overlay-left {
  transform: translateX(0);
}

.pm-overlay-right {
  right: 0;
  transform: translateX(0);
}

.pm-auth-container.right-panel-active .pm-overlay-right {
  transform: translateX(20%);
}

.pm-auth-container {
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 640px;
  max-height: 92vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.pm-sign-in-container {
  overflow-y: auto;
}

/* Sign-up form is taller than sign-in. align-items:center causes symmetric
   overflow (clipped at both top AND bottom, neither edge scrollable).
   Switching to flex-start means overflow falls off the bottom only — fully
   accessible by scrolling. Padding replaces the visual centering. */
.pm-sign-up-container {
  overflow-y: auto;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 28px;
}

.pm-sign-in-container {
  left: 0;
  z-index: 2;
  background: #fff;
  transform: translateX(0);
}

.pm-sign-up-container {
  left: 0;
  z-index: 1;
  opacity: 0;
  background: #fff;
}

.pm-auth-container.right-panel-active .pm-sign-in-container {
  transform: translateX(100%);
}

.pm-auth-container.right-panel-active .pm-sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: pm-show 0.6s;
}

@keyframes pm-show {
  0%, 49.99% {
    opacity: 0;
    z-index: 1;
  }
  50%, 100% {
    opacity: 1;
    z-index: 5;
  }
}

.pm-overlay {
  background: #219ebc;
  position: relative;
  left: -100%;
  width: 200%;
  height: 100%;
  display: flex;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
  }

.pm-auth-container.right-panel-active .pm-overlay {
  transform: translateX(50%);
}

/* Google Sign-In Styling */
.pm-auth-divider {
  text-align: center;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0;
  position: relative;
}

.pm-auth-divider::before,
.pm-auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background-color: #ddd;
}

.pm-auth-divider::before {
  left: 0;
}

.pm-auth-divider::after {
  right: 0;
}

#pm-google-signin-button,
#pm-google-signup-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
}

/* ── Mobile: bottom-sheet, full-width forms, no sliding panel ── */
@media (max-width: 600px) {
  #pm-auth-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .pm-auth-container {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
  }

  /* Hide the sliding teal panel — unusable at mobile width */
  .pm-overlay-container {
    display: none !important;
  }

  /* Override absolute positioning — stack forms full width */
  .pm-form-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 36px 24px 32px !important;
    transform: none !important;
    opacity: 1 !important;
    display: none;
  }

  .pm-form-container form {
    width: 100% !important;
  }

  /* Sign-in visible by default */
  .pm-sign-in-container {
    display: flex !important;
  }

  /* Toggle to sign-up */
  .pm-auth-container.right-panel-active .pm-sign-in-container {
    display: none !important;
  }

  .pm-auth-container.right-panel-active .pm-sign-up-container {
    display: flex !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 5;
    animation: none !important;
  }

  /* Mobile switch link — hidden on desktop */
  .pm-mobile-switch {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-bottom: 4px;
  }

  .pm-mobile-switch a {
    color: #219ebc;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
  }
}

/* Hide mobile switch links on desktop */
@media (min-width: 601px) {
  .pm-mobile-switch { display: none; }
}
