.persia-auth {
  font-family: inherit;
  inline-size: 100%;
  min-block-size: 100vh;
  background: #fff;
  position: relative;
  overflow: hidden;
  color: #1d2b36;
}

.persia-auth * {
  box-sizing: border-box;
}

.pa-shell {
  min-block-size: 100vh;
  display: grid;
  grid-template-columns: minmax(auto, 0.5fr) minmax(420px, 1fr);
  background: #fff;
}

.pa-visual {
  position: relative;
  min-block-size: 100vh;
  background: url("/portals/0/images/login-page.jpg") center center/cover
    no-repeat;
  overflow: hidden;
}

.pa-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 46, 70, 0.28),
    rgba(0, 46, 70, 0.85)
  );
}

.pa-visual-brand {
  position: absolute;
  inset-block-start: 23%;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  text-align: end;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.pa-brand-mark {
  font-size: 27px;
  line-height: 1.1;
}

.pa-brand-sub {
  font-size: 17px;
  line-height: 1.1;
  opacity: 0.95;
}

.pa-panel {
  min-block-size: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block-start: 32px;
  padding-inline-end: 56px;
  padding-block-end: 32px;
  padding-inline-start: 56px;
  background: #fff;
}

.pa-card {
  width: 430px;
  max-width: 95%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding-block-start: 22px;
  padding-inline-end: 24px;
  padding-block-end: 26px;
  padding-inline-start: 24px;
  position: relative;
  border: 0;
  border-radius: 0;
  flex-shrink: 0;
}

.pa-card-head {
  margin-block-start: 0;
  margin-inline-end: 0;
  margin-block-end: 22px;
  margin-inline-start: 0;
  text-align: start;
}

.pa-card-head h2 {
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
  color: #22313b;
  font-weight: 700;
}

.pa-card-head p {
  font-size: 13px;
  line-height: 1.9;
  margin-block-start: 2px;
  margin-inline-end: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  color: #6f7a82;
}

.pa-back {
  display: none;
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  border: 0;
  background: transparent;
  color: #0065a8;
  inline-size: 32px;
  block-size: 32px;
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
}

.pa-step.hidden {
  display: none !important;
}

.pa-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #22313b;
  margin-block-start: 0;
  margin-inline-end: 0;
  margin-block-end: 10px;
  margin-inline-start: 0;
  text-align: start;
}

.pa-help {
  font-size: 13px;
  color: #66727a;
  margin-block-start: 0;
  margin-inline-end: 0;
  margin-block-end: 18px;
  margin-inline-start: 0;
  line-height: 1.9;
  text-align: start;
}

.pa-field,
.pa-profile-row {
  position: relative;
  margin-block-start: 0;
  margin-inline-end: 0;
  margin-block-end: 24px;
  margin-inline-start: 0;
  border: 1px solid #b8b8b8;
  background: #fff;
  padding-block-start: 0;
  padding-inline-end: 12px;
  padding-block-end: 0;
  padding-inline-start: 12px;
}

.pa-field label,
.pa-profile-row label {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: -13px;
  background: #fff;
  padding-block-start: 0;
  padding-inline-end: 8px;
  padding-block-start: 0;
  padding-inline-end: 8px;
  color: #4f5960;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  z-index: 1;
}

.pa-field input,
.pa-field select,
.pa-profile-row input,
.pa-profile-row select {
  inline-size: 100%;
  block-size: 47px;
  border: 0 !important;
  outline: 0 !important;
  background: #fff;
  color: #222;
  font-size: 15px;
  padding-block-start: 0;
  padding-inline-end: 4px;
  padding-block-end: 0;
  padding-inline-start: 4px;
  box-shadow: none !important;
  margin: 0;
  border-radius: 0 !important;
  text-align: start;
  direction: ltr;
}

.pa-field input::placeholder,
.pa-profile-row input::placeholder {
  color: #b8b8b8;
}

.pa-field input:focus,
.pa-field select:focus,
.pa-profile-row input:focus,
.pa-profile-row select:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.pa-actions {
  display: flex;
  gap: 8px;
  margin-block-start: 6px;
}

.pa-actions-two > * {
  flex: 1;
}

.pa-primary,
.pa-secondary,
.pa-outline {
  block-size: 48px;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  box-shadow: none;
  outline: 0;
  text-align: center;
}

.pa-primary {
  border: 1px solid #0065a8;
  background: #0065a8;
  color: #fff;
  inline-size: 100%;
}

.pa-primary:hover {
  background: #00588f;
  border-color: #00588f;
  color: #fff;
}

.pa-secondary {
  border: 1px solid #0065a8;
  background: #fff;
  color: #0065a8;
}

.pa-secondary:hover {
  background: #f3f9ff;
  color: #00588f;
}

.pa-outline {
  display: block;
  inline-size: 100%;
  margin-block-start: 20px;
  border: 1px solid #0065a8;
  background: #fff;
  color: #0065a8;
}

.pa-outline + .pa-outline {
  margin-block-start: 10px;
}

.pa-outline:hover {
  background: #f3f9ff;
  color: #00588f;
}

.pa-inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-block-start: 18px;
  border-block-start: 1px solid #eef1f3;
  padding-block-start: 14px;
}

.pa-link {
  border: 0;
  background: transparent;
  color: #0065a8;
  font-size: 13px;
  line-height: 1.8;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.pa-link:hover {
  color: #004f83;
  text-decoration: none;
}

.pa-hidden-control {
  display: none !important;
}

.pa-message {
  border-radius: 0;
  padding-block-start: 10px;
  padding-inline-end: 12px;
  padding-block-end: 10px;
  padding-inline-start: 12px;
  margin-block-end: 18px;
  font-size: 13px;
  line-height: 1.8;
  text-align: start;
  border: 1px solid transparent;
}

.pa-message.error {
  background: #fff5f5;
  color: #8b0000;
  border-color: #e8b2b2;
}

.pa-message.success {
  background: #f0fff4;
  color: #166534;
  border-color: #b7e4c7;
}

.pa-message.info {
  background: #f4f9ff;
  color: #004b7a;
  border-color: #b9d9f2;
}

.pa-otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-block-start: 18px;
  margin-inline-end: 0;
  margin-block-end: 22px;
  margin-inline-start: 0;
}

.pa-otp input {
  inline-size: 44px;
  block-size: 48px;
  text-align: center;
  font-size: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #b8b8b8;
  border-radius: 0;
  background: #fff;
  outline: 0;
}

.pa-otp input:focus {
  border-color: #0065a8;
}

.pa-profile-row small {
  display: none;
}

@media (max-width: 991px) {
  .pa-shell {
    display: block;
    min-block-size: 100vh;
  }

  .pa-visual {
    display: none;
  }

  .pa-panel {
    min-block-size: 100vh;
    padding-block-start: 28px;
    padding-inline-end: 18px;
    padding-block-end: 28px;
    padding-inline-start: 18px;
  }

  .pa-card-head {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pa-panel {
    padding-block-start: 20px;
    padding-inline-end: 12px;
    padding-block-end: 20px;
    padding-inline-start: 12px;
  }

  .pa-card {
    padding-block-start: 22px;
    padding-inline-end: 18px;
    padding-block-end: 22px;
    padding-inline-start: 18px;
  }

  .pa-actions {
    gap: 8px;
  }

  .pa-primary,
  .pa-secondary,
  .pa-outline {
    block-size: 46px;
  }

  .pa-otp {
    gap: 6px;
  }

  .pa-otp input {
    inline-size: 38px;
    block-size: 46px;
  }

  .pa-inline-actions {
    display: block;
  }

  .pa-link {
    display: block;
    inline-size: 100%;
    text-align: center;
    margin-block-start: 8px;
  }
}

.pa-inline-actions-single {
  justify-content: center;
}

.pa-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-start: -8px;
  margin-inline-end: 0;
  margin-block-end: 18px;
  margin-inline-start: 0;
  font-size: 13px;
  color: #66727a;
  line-height: 1.8;
}

.pa-countdown {
  display: inline-block;
  color: #66727a;
}

.pa-resend {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.pa-resend.is-disabled,
.pa-resend:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: #8094a3;
}

.pa-empty-profile {
  font-size: 13px;
  line-height: 1.9;
  color: #66727a;
  margin-block-start: 0;
  margin-inline-end: 0;
  margin-block-end: 16px;
  margin-inline-start: 0;
  text-align: start;
}
