/* ============================================================
   Perfect HOA — Auth Screens (Login / Forgot Password)
   Split-screen shell: navy brand panel + white form panel.
   ============================================================ */

body.page-ath {
  margin: 0;
  background: var(--phoa-card);
  font-family: var(--phoa-font);
  -webkit-font-smoothing: antialiased;
}

.page-ath-wrap {
  min-height: 100vh;
  display: flex;
}

/* --- Brand panel (left, desktop only) --- */
.page-ath-gfx {
  flex: 1;
  position: relative;
  background: radial-gradient(circle at 20% 20%, #2A3B7E 0%, #1E2A63 45%, #16204d 100%);
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  width: auto;
}

.page-ath-gfx::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(59, 110, 246, .18);
  filter: blur(6px);
}

.page-ath-gfx::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(59, 110, 246, .10);
}

.page-ath-gfx-brand,
.page-ath-gfx-copy {
  position: relative;
  z-index: 1;
}

.page-ath-gfx-headline {
  font-size: 34px;
  font-weight: var(--phoa-fw-extrabold);
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 440px;
}

.page-ath-gfx-sub {
  font-size: 15.5px;
  color: #AEBBE6;
  margin-top: 18px;
  line-height: 1.6;
  max-width: 400px;
}

.page-ath-gfx-copy {
  font-size: 13px;
  color: #8493C4;
}

/* --- Form panel (right) --- */
.page-ath-content {
  width: min(100%, 480px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px clamp(24px, 5vw, 56px);
  overflow-y: auto;
  background: var(--phoa-card);
}

.page-ath-inner {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.page-ath-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--phoa-primary-tint-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phoa-primary);
  margin-bottom: 22px;
}

.page-ath-heading {
  font-size: 26px;
  font-weight: var(--phoa-fw-extrabold);
  letter-spacing: -.01em;
  color: var(--phoa-text);
  margin: 0;
}

.page-ath-subtext {
  font-size: 14.5px;
  color: var(--phoa-muted-3);
  margin-top: 8px;
  line-height: 1.55;
}

/* --- Fields --- */
.auth-field {
  margin-top: 24px;
}

.auth-field:first-of-type {
  margin-top: 30px;
}

.auth-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.auth-field label {
  display: block;
  font-size: 13.5px;
  font-weight: var(--phoa-fw-bold);
  color: var(--phoa-secondary);
  margin: 0 0 8px;
}

.auth-field-label-row label {
  margin: 0;
}

.auth-forgot-link {
  font-size: 13px;
  font-weight: var(--phoa-fw-bold);
  color: var(--phoa-primary);
  text-decoration: none;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-input-icon-wrap {
  position: relative;
}

.auth-input-icon-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--phoa-muted-4);
}

.auth-input,
.auth-input-icon-wrap input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--phoa-border-input-2);
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--phoa-text);
  outline: none;
  background: var(--phoa-card);
  transition: border-color .12s ease, box-shadow .12s ease;
}

.auth-input-icon-wrap input {
  padding-left: 42px;
}

.auth-input:focus,
.auth-input-icon-wrap input:focus {
  border-color: var(--phoa-primary);
  box-shadow: 0 0 0 3px rgba(59, 110, 246, .12);
}

/* --- Remember me checkbox --- */
.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.auth-checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1.5px solid var(--phoa-border-input-2);
  background: var(--phoa-card);
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, border-color .12s ease;
}

.auth-checkbox-row input[type="checkbox"]:checked {
  background: var(--phoa-primary);
  border-color: var(--phoa-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.auth-checkbox-row label {
  font-size: 13.5px;
  color: var(--phoa-secondary);
  font-weight: var(--phoa-fw-semibold);
  cursor: pointer;
  margin: 0;
  line-height: 1.5;
}

.auth-checkbox-row label a {
  color: var(--phoa-primary);
  text-decoration: none;
}

.auth-checkbox-row label a:hover {
  text-decoration: underline;
}

/* --- Primary submit button --- */
.auth-submit-btn {
  width: 100%;
  margin-top: 26px;
  height: 50px;
  background: var(--phoa-primary);
  color: #fff;
  font-size: 15px;
  font-weight: var(--phoa-fw-bold);
  border: none;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s ease;
}

.auth-submit-btn:hover {
  background: var(--phoa-primary-hover);
  color: #fff;
}

/* --- Back-to-login link --- */
.auth-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: var(--phoa-fw-bold);
  color: var(--phoa-primary);
  text-decoration: none;
}

.auth-back-link:hover {
  text-decoration: underline;
  color: var(--phoa-primary);
}

/* --- Secondary note (sign up link, etc.) --- */
.page-ath-form .form-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--phoa-muted-3);
}

.page-ath-form .form-note a {
  color: var(--phoa-primary);
  font-weight: var(--phoa-fw-bold);
  text-decoration: none;
}

.page-ath-form .form-note a:hover {
  text-decoration: underline;
}

.page-ath-form .alert {
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 13.5px;
}

/* --- Footer --- */
.page-ath-footer {
  width: 100%;
  max-width: 360px;
  margin: 24px auto 0;
  text-align: center;
}

.page-ath-footer .footer-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--phoa-muted-4);
}

.page-ath-footer .footer-links a {
  color: var(--phoa-muted-2);
  text-decoration: none;
}

.page-ath-footer .footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .page-ath-gfx {
    display: none;
  }

  .page-ath-content {
    width: 100%;
  }
}
