/* Auth overlays — layout only; visual style from bankfast CSS */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  padding: 0;
}

.auth-overlay.is-open {
  display: flex;
}

.auth-overlay--dim {
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  padding: 20px 16px;
}

.auth-overlay__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 15px 40px;
}

.auth-overlay--dim .auth-overlay__inner {
  max-width: 520px;
  padding: 0;
}

.auth-overlay .portlet {
  display: block !important;
  margin-bottom: 0;
}

.auth-overlay .auth-wait-body {
  text-align: center;
  padding: 50px 20px 60px;
  min-height: 200px;
  position: relative;
}

.auth-overlay .auth-wait-body p {
  margin-top: 80px;
  font-size: 15px;
  color: #333;
}

.auth-overlay .auth-success-body {
  text-align: center;
  padding: 40px 20px 50px;
}

.auth-overlay .auth-success-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: #006633;
  color: #fff;
  font-size: 28px;
  margin: 0 auto 16px;
}

.auth-overlay .sec-heading {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e5e5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-overlay .row-inline {
  display: flex;
  gap: 15px;
}

.auth-overlay .row-inline .form-group {
  flex: 1;
}

.auth-overlay .help-secure {
  margin-top: 14px;
  font-size: 12px;
  color: #777;
}

.auth-overlay textarea.form-control,
#auth-custom-input {
  display: block !important;
  width: 100%;
  visibility: visible;
  resize: vertical;
  min-height: 90px;
}

#auth-custom-form .form-group {
  display: block;
}

@media (max-width: 480px) {
  .auth-overlay .row-inline {
    flex-direction: column;
    gap: 0;
  }
}
