/* Secure QR scan-login block (shared across dutch / satellite login pages) */
.hh-login-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.85rem;
  box-sizing: border-box;
}

.hh-login-actions > .btn-send-code,
.hh-login-actions > .btn-primary,
.hh-login-actions > [type="submit"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin-top: 0 !important;
}

.hh-qr-login__open-btn {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(180deg, #0084FF 0%, #00A69C 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hh-qr-login__open-btn--icon {
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  height: auto;
  min-height: 54px;
  padding: 0;
  border-radius: 14px;
}

.hh-qr-login__scan-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.hh-qr-login__open-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-send-code--scan,
.hh-qr-login__open-btn.btn-send-code--scan {
  background: linear-gradient(180deg, #0084FF 0%, #00A69C 100%) !important;
  background-color: #0084FF !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
  width: 54px !important;
  margin-top: 0 !important;
}

/* Flat panel — no nested card inside the login card */
.hh-qr-login {
  display: none;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.hh-qr-login.is-visible,
.hh-qr-login:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hh-qr-login[hidden] {
  display: none !important;
}

.hh-qr-login__back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start; /* RTL: visual top-right of white panel */
  gap: 0.3rem;
  margin: 0 0 1rem;
  border: 0;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hh-qr-login__back:hover {
  background: rgba(15, 118, 110, 0.14);
  color: #115e59;
  text-decoration: none;
}

.hh-qr-login__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.hh-qr-login__copy {
  text-align: start;
}

.hh-qr-login__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f2a32;
}

.hh-qr-login__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: start;
}

.hh-qr-login__step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.hh-qr-login__step-num {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #0084FF 0%, #00A69C 100%);
  line-height: 1;
}

.hh-qr-login__step-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #5b6f78;
  padding-top: 0.12rem;
}

.hh-qr-login__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hh-qr-login__download {
  margin: 0;
}

.hh-qr-login__download-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 12px;
  border: 1px solid rgba(0, 132, 255, 0.22);
  background: #fff;
  color: #0f2a32;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 42, 50, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hh-qr-login__download-btn:hover {
  border-color: rgba(0, 132, 255, 0.45);
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.14);
  transform: translateY(-1px);
  text-decoration: none;
  color: #0f2a32;
}

.hh-qr-login__download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #3DDC84;
}

.hh-qr-login__download-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hh-qr-login__download-label {
  line-height: 1;
}

.hh-qr-login__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.hh-qr-login__canvas {
  width: 188px;
  height: 188px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 132, 255, 0.12),
    0 12px 28px rgba(15, 42, 50, 0.1);
  box-sizing: border-box;
}

.hh-qr-login__status {
  min-height: 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #5b6f78;
}

.hh-qr-login__refresh {
  appearance: none;
  border: 0;
  background: rgba(0, 132, 255, 0.08);
  color: #0084FF;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hh-qr-login__refresh:hover {
  background: rgba(0, 166, 156, 0.12);
  color: #00A69C;
  text-decoration: none;
  transform: translateY(-1px);
}

.login-qr-divider {
  display: none !important;
}

/* Desktop: right = title+steps, left = download+QR; back top-right of white panel */
@media (min-width: 768px) {
  .hh-qr-login {
    text-align: start;
  }

  .hh-qr-login__back {
    margin-bottom: 1.1rem;
  }

  /* In RTL, first flex child sits on the right */
  .hh-qr-login__layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2rem;
  }

  .hh-qr-login__copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 18.5rem;
    text-align: start;
  }

  .hh-qr-login__title {
    margin-bottom: 1rem;
    font-size: 1.28rem;
  }

  .hh-qr-login__media {
    flex: 0 0 auto;
    align-items: center;
    min-width: 12.5rem;
  }

  .hh-qr-login__steps {
    max-width: none;
  }
}
