.pa-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 25, 38, .62);
  backdrop-filter: blur(6px);
}

.pa-modal.open {
  display: flex;
}

body.pa-modal-open {
  overflow: hidden;
}

.pa-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(88, 109, 246, .18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(35, 43, 82, .28);
  color: #202333;
}

.pa-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f8;
  color: #616574;
  font-size: 25px;
  cursor: pointer;
}

.pa-lock {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf1ff, #f3edff);
  font-size: 29px;
}

.pa-card h2 {
  margin: 0;
  text-align: center;
  font-size: 25px;
}

.pa-program {
  margin: 9px 0 0;
  text-align: center;
  color: #526ee8;
  font-weight: 800;
}

.pa-desc {
  margin: 10px 0 24px;
  text-align: center;
  color: #707586;
  font-size: 14px;
}

.pa-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.pa-input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 15px;
  border: 1.5px solid #dfe2ec;
  border-radius: 13px;
  outline: 0;
  font-size: 17px;
  text-align: center;
  letter-spacing: 1px;
}

.pa-input:focus {
  border-color: #5a76ef;
  box-shadow: 0 0 0 4px rgba(90, 118, 239, .12);
}

.pa-message {
  min-height: 22px;
  padding: 8px 2px 5px;
  color: #737889;
  font-size: 13px;
  text-align: center;
}

.pa-message.error { color: #c63f46; }
.pa-message.ok { color: #168050; }
.pa-message.loading { color: #526ee8; }

.pa-submit,
.pa-cancel {
  width: 100%;
  height: 50px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.pa-submit {
  border: 0;
  background: linear-gradient(135deg, #5874ed, #7359ee);
  color: #fff;
  box-shadow: 0 10px 24px rgba(88, 116, 237, .24);
}

.pa-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.pa-cancel {
  margin-top: 9px;
  border: 1px solid #e0e3ec;
  background: #fff;
  color: #646978;
}

.pa-note {
  margin: 17px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f7ff;
  color: #626c91;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 540px) {
  .pa-modal { padding: 14px; }
  .pa-card { padding: 30px 21px 24px; border-radius: 20px; }
}

