/* =====================================================
   HOLY CIRCLE — AUTH PAGES (FINAL, NORMALIZED)
   Works with existing .member-* markup
===================================================== */

/* ---------- PAGE BASE ---------- */
* {
  margin: 0;
  padding: 0;
}

.auth-page {
  min-height: 100vh;
  padding-top: 80px;
  background:
    radial-gradient(
      circle at top,
      rgba(191,151,69,0.12),
      rgba(255,255,255,0.97) 60%
    ),
    #ffffff;
}

/* Hide member-only UI on auth pages */
.auth-page [data-member-only],
.auth-page .notif-btn,
.auth-page .hc-nav-avatar,
.auth-page .avatar-menu {
  display: none !important;
}

/* Remove footer entirely */
.auth-page footer,
.auth-page .footer {
  display: none !important;
}

/* ---------- CENTER LAYOUT ---------- */

.auth-page .member-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  max-width: none !important;
  margin: 0 !important;
}

/* ---------- CARD ---------- */

.auth-page .member-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 22px;
  padding: 2.25rem 2rem 2.4rem;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.12),
    0 0 0 1px rgba(191,151,69,0.18);
  animation: authFadeUp 0.45s ease-out both;
}

/* ---------- LOGO (OVERRIDES GLOBAL IMG RULES) ---------- */

.auth-page .member-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-page .member-logo img {
  width: auto !important;
  max-width: 160px !important;
  height: auto !important;
  display: block;
  margin: 0 auto 1rem;
}


/* ---------- TITLES ---------- */

.auth-page .member-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: #002e6b;
  margin: 0.25rem 0 0.35rem;
}

.auth-page .member-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.75rem;
}

/* ---------- FORM ---------- */

.auth-page form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-page .member-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.auth-page label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
}

/* Normalize inputs */
.auth-page input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  border-radius: 14px;
  border: 1px solid #d7dbe3;
  background: #ffffff;
}

.auth-page input:focus {
  outline: none;
  border-color: #bf9745;
  box-shadow: 0 0 0 3px rgba(191,151,69,0.22);
}

/* Password wrapper */
.auth-page .password-wrapper {
  position: relative;
}

.auth-page .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* ---------- PRIMARY BUTTON ---------- */

.auth-page .btn-member {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #bf9745, #f0e990);
  color: #002e6b;
  border: none;
  cursor: pointer;
}

.auth-page .btn-member:hover {
  box-shadow: 0 10px 26px rgba(191,151,69,0.45);
}

/* ---------- HELP LINKS ---------- */

.auth-page .member-helper {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.4rem;
  font-size: 0.88rem;
}

.auth-page .member-helper a {
  color: #002e6b;
  font-weight: 500;
}

.auth-page .member-helper a:hover {
  color: #bf9745;
}

/* ---------- ANIMATION ---------- */

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 480px) {
  .auth-page .member-card {
    padding: 2rem 1.6rem 2.2rem;
    border-radius: 20px;
  }

  .auth-page .member-logo img {
    max-width: 130px;
  }

  .auth-page .member-title {
    font-size: 1.4rem;
  }
}
