/* ================================================================
   WELLMATIC HEALTHCARE — Auth Pages (Login / Register) CSS v4
   Supports both old class names (.auth-card__*) and
   new simple names (.auth-title, .auth-link) — no more mismatches
   ================================================================ */

/* ── Page Layout ─────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 110px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 16px;
  background: var(--bg-section);
  position: relative;
}
.auth-page::before {
  content: '';
  position: fixed; inset: 0;
  background: linear-gradient(135deg, rgba(11,28,63,.04) 0%, rgba(201,168,76,.04) 100%);
  pointer-events: none;
}

/* ── Card ────────────────────────────────────────────────────── */
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  width: 100%;
  position: relative; z-index: 1;
  border-top: 4px solid var(--gold);
}

/* ── Logo ────────────────────────────────────────────────────── */
.auth-logo,
.auth-card__logo {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  text-decoration: none; margin-bottom: 6px;
}
.auth-logo img,
.auth-card__logo img {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  background: var(--gold-soft);
  padding: 6px; object-fit: contain;
  margin: 0 auto 10px; display: block;
}
.auth-logo-name,
.auth-card__logo-name {
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 700;
  color: var(--navy); letter-spacing: .01em;
}
.auth-logo-tag,
.auth-card__logo-tag {
  font-size: .65rem; color: var(--gold-dark);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}

/* ── Title & Subtitle ────────────────────────────────────────── */
.auth-title,
.auth-card__title,
h1.auth-title {
  font-family: var(--font-display);
  font-size: 1.65rem; font-weight: 700;
  color: var(--navy); text-align: center;
  margin-bottom: 6px; line-height: 1.2;
}
.auth-subtitle,
.auth-card__subtitle {
  font-size: .88rem; color: var(--text-muted);
  text-align: center; margin-bottom: 28px; line-height: 1.5;
}

/* ── Submit Button ───────────────────────────────────────────── */
.auth-submit-btn,
.auth-card .auth-submit-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  background: var(--navy); color: #fff;
  border: none; border-radius: var(--r-pill);
  padding: 13px 24px; font-size: .96rem; font-weight: 700;
  cursor: pointer; transition: background var(--t-base), transform var(--t-fast);
  font-family: var(--font-body); margin-top: 20px;
}
.auth-submit-btn:hover {
  background: var(--gold); color: var(--navy);
  transform: translateY(-1px); box-shadow: var(--shadow-gold);
}

/* ── Divider ─────────────────────────────────────────────────── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; font-size: .8rem; color: var(--text-light);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Links ───────────────────────────────────────────────────── */
.auth-link,
.auth-switch {
  text-align: center; font-size: .88rem; color: var(--text-muted);
}
.auth-link a, .auth-switch a {
  color: var(--gold-dark); font-weight: 700; text-decoration: none;
}
.auth-link a:hover, .auth-switch a:hover { text-decoration: underline; color: var(--navy); }

.auth-forgot {
  font-size: .82rem; color: var(--gold-dark);
  text-decoration: none; font-weight: 600;
  transition: color var(--t-fast);
}
.auth-forgot:hover { color: var(--navy); text-decoration: underline; }

/* ── Trust badges ────────────────────────────────────────────── */
.auth-trust-badges {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 18px; flex-wrap: wrap;
}
.auth-trust-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: .74rem; color: var(--text-light);
}
.auth-trust-badge i { color: var(--gold-dark); }

/* ── Password toggle ─────────────────────────────────────────── */
.password-field { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-light);
  cursor: pointer; font-size: 1rem; padding: 0; z-index: 2;
  transition: color var(--t-fast);
}
.password-toggle:hover { color: var(--gold-dark); }

/* ── Register benefits column ────────────────────────────────── */
.register-benefits {
  background: var(--navy);
  border-radius: var(--r-xl); padding: 36px 28px;
  color: #fff; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid rgba(201,168,76,.2);
}
.register-benefits__title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: #fff; margin-bottom: 6px;
}
.register-benefits__sub { color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: 28px; }
.register-benefit-item {
  display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start;
}
.register-benefit-item__icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.2);
  color: var(--gold); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.register-benefit-item__title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.register-benefit-item__text  { font-size: .8rem; color: rgba(255,255,255,.65); line-height: 1.5; }

/* ── Password strength ───────────────────────────────────────── */
.password-strength { margin-top: 6px; }
.password-strength__bar {
  height: 4px; background: var(--border); border-radius: 2px;
  overflow: hidden; margin-bottom: 4px;
}
.password-strength__fill {
  height: 100%; border-radius: 2px; transition: width .3s, background .3s;
}
.password-strength__fill--weak   { background: #ef4444; width: 25%; }
.password-strength__fill--fair   { background: #f97316; width: 50%; }
.password-strength__fill--good   { background: #eab308; width: 75%; }
.password-strength__fill--strong { background: var(--navy); width: 100%; }
.password-strength__label { font-size: .74rem; font-weight: 600; color: var(--text-light); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width:575px) { .auth-card { padding: 28px 20px; } }
