/**
 * PrintA2Z auth pages — login / recovery shell
 */
.pa-auth-body .pa-app-main {
  background:
    radial-gradient(ellipse 80% 55% at 8% 12%, rgba(14, 116, 144, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 40% at 92% 8%, rgba(20, 184, 166, 0.1), transparent 52%),
    linear-gradient(180deg, #f4f8f8 0%, #eef5f7 48%, #f8fafa 100%);
}

.pa-auth-section--split {
  padding: 2.25rem 0 3.5rem;
}

.pa-auth-shell,
.pa-container.pa-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  width: min(1100px, calc(100% - var(--pa-container-gutter, 1.25rem))) !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pa-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 2.15rem 1.9rem 2.2rem;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(11, 23, 36, 0.35) 0%, rgba(15, 37, 54, 0.72) 55%, rgba(11, 23, 36, 0.88) 100%),
    linear-gradient(135deg, #0e7490 0%, #155e75 48%, #0f3d4a 100%);
  box-shadow: 0 18px 40px rgba(15, 37, 54, 0.16);
}

.pa-auth-brand::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 40% 60% 55% 45%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
  pointer-events: none;
}

.pa-auth-brand::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.pa-auth-brand__mark,
.pa-auth-brand__title,
.pa-auth-brand__text,
.pa-auth-brand__points {
  position: relative;
  z-index: 1;
}

.pa-auth-brand__mark {
  margin: 0 0 auto;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.pa-auth-brand__title {
  margin: 0 0 0.75rem;
  max-width: 14ch;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.pa-auth-brand__text {
  margin: 0 0 1.25rem;
  max-width: 28ch;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.pa-auth-brand__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.pa-auth-brand__points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.pa-auth-brand__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.25);
}

.pa-auth-panel {
  display: flex;
  align-items: center;
  min-width: 0;
  background: #fff;
  padding: 1.55rem 1.65rem;
  border-radius: 22px;
  border: 1px solid #d5e6ec;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 18px 40px rgba(15, 37, 54, 0.08);
}

.pa-auth-section--split .pa-auth-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: paAuthRise 0.45s ease both;
}

.pa-auth-section--split .pa-auth-card .pa-eyebrow {
  margin: 0 0 0.45rem;
  color: #0e7490 !important;
}

.pa-auth-section--split .pa-auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
}

.pa-auth-section--split .pa-auth-card .pa-lead {
  margin: 0 0 1.35rem;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.5;
}

.pa-auth-section--split .pa-auth-form {
  gap: 0.95rem;
}

.pa-auth-section--split .pa-field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
}

.pa-auth-section--split .pa-field input {
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #d5e6ec !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pa-auth-section--split .pa-field input:focus {
  border-color: #2dd4bf !important;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14) !important;
}

.pa-auth-section--split .pa-password-wrap {
  width: 100%;
}

.pa-auth-section--split .pa-password-wrap input {
  width: 100%;
  padding-right: 4.2rem;
}

.pa-auth-section--split .pa-password-toggle {
  right: 0.45rem;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 720;
}

.pa-auth-section--split .pa-password-toggle:hover {
  background: #ecfeff;
}

.pa-auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.pa-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0e7490;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.15rem 0;
  cursor: pointer;
  text-decoration: none;
}

.pa-link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pa-link-btn--center {
  width: 100%;
  text-align: center;
  margin-top: 0.15rem;
}

.pa-auth-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.pa-btn-block {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px !important;
  font-weight: 720;
}

.pa-auth-section--split .pa-btn-primary {
  background: #0e7490 !important;
  border-color: #0e7490 !important;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.22);
}

.pa-auth-section--split .pa-btn-primary:hover {
  background: #155e75 !important;
  border-color: #155e75 !important;
}

.pa-auth-section--split .pa-btn-ghost {
  border: 1px solid #d5e6ec !important;
  background: #fff !important;
  color: #334155 !important;
}

.pa-auth-section--split .pa-auth-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
  text-align: center;
  font-size: 0.9rem;
}

.pa-auth-section--split .pa-auth-foot a {
  color: #0e7490;
  font-weight: 740;
  text-decoration: none;
}

.pa-auth-section--split .pa-auth-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pa-otp-timer {
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 600;
}

.pa-auth-section--split .pa-auth-form .error,
.pa-auth-section--split .pa-field .error {
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 600;
}

@keyframes paAuthRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pa-auth-fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.pa-captcha-box--compact {
  margin-top: 0.15rem;
  padding: 0.85rem;
  border: 1px solid #d5e6ec;
  border-radius: 14px;
  background: #f7fbfb;
}

.pa-captcha-box--compact .pa-captcha-row {
  margin-bottom: 0.7rem;
}

.pa-captcha-box--compact img {
  height: 56px;
  width: auto;
  max-width: 180px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d5e6ec;
}

.pa-auth-section--split .pa-auth-success {
  margin: 0.35rem 0 1rem;
  border-radius: 12px;
  border-color: #99f6e4;
  background: #ecfeff;
  color: #155e75;
}

#snackbar {
  display: none;
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.86rem;
  font-weight: 650;
}

#snackbar.show {
  display: block;
}

@media (max-width: 560px) {
  .pa-auth-fields-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .pa-auth-shell,
  .pa-container.pa-auth-shell {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .pa-auth-brand {
    min-height: 0;
    padding: 1.45rem 1.35rem 1.5rem;
  }

  .pa-auth-brand__title {
    max-width: none;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
  }

  .pa-auth-brand__points {
    display: none;
  }

  .pa-auth-panel {
    padding: 1.35rem 1.25rem 1.45rem;
  }
}

@media (max-width: 520px) {
  .pa-auth-section--split {
    padding: 1.25rem 0 2.5rem;
  }

  .pa-auth-brand,
  .pa-auth-panel {
    border-radius: 18px;
  }

  .pa-auth-panel {
    padding: 1.15rem 1.05rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-auth-section--split .pa-auth-card {
    animation: none;
  }
}
