/* ============================================================================
   DreamClear — Auth-page overrides on top of dc-auth.css.
   Loads AFTER dc-auth.css so these rules win.
   Ties the split-panel login to the classic DreamClear login.jpg background.
   ============================================================================ */

.dc-auth-brand {
  padding: 0;                     /* image occupies the whole panel */
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 130, 186, 0.35) 100%),
    url('/css/images/login.jpg') center / cover no-repeat;
  border-right: none;
}

/* The dbafi radial washes read as noise on top of a photograph — kill them. */
.dc-auth-brand::before,
.dc-auth-brand::after {
  content: none;
}

.dc-auth-brand-inner {
  padding: 3rem;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.dc-auth-brand-logo {
  width: 220px;
  max-width: 60%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.dc-auth-tagline {
  font-family: var(--dc-font-display);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

.dc-auth-blurb {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
  margin: 0;
}

.dc-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.dc-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ============================================================================
   Below lg (mobile + tablet)
   ----------------------------------------------------------------------------
   The brand panel is hidden (dc-auth.css handles that). Take over the whole
   viewport with the same login.jpg background + darken gradient so the mobile
   experience matches desktop's brand feel instead of a blank void. The form
   itself is elevated as a floating card so the fields stay readable over the
   photo. Above lg the split layout is restored.
   ============================================================================ */
@media (max-width: 991.98px) {
  .dc-auth-body {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 130, 186, 0.45) 100%),
      url('/css/images/login.jpg') center / cover no-repeat;
    background-attachment: fixed;  /* keep the image put while the form scrolls */
  }

  /* Form panel becomes transparent so the body background shows through. */
  .dc-auth-panel {
    background: transparent;
  }

  /* Card carries its own surface so the fields sit on solid ground. */
  .dc-auth-card {
    background: var(--dc-surface);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius-card, 12px);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.55),
                0  4px 12px  -6px rgba(0, 0, 0, 0.35);
  }

  /* Footer sits directly on the photo — brighten it so the copyright + links
     stay legible against the dark overlay. */
  .dc-auth-footer,
  .dc-auth-footer a {
    color: rgba(255, 255, 255, 0.9);
  }
  .dc-auth-footer a:hover { color: #fff; }

  /* Theme + culture buttons: solid pill so they read on any photo region. */
  .dc-auth-icon-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dc-ink);
    border-color: rgba(255, 255, 255, 0.35);
  }
  .dc-auth-icon-btn:hover {
    background: #fff;
    color: var(--dc-ink);
  }
}

/* Dark theme on mobile: keep the photo but soften the overlay so the darken
   doesn't stack with the already-dark surface tones and turn muddy. */
@media (max-width: 991.98px) {
  :root[data-bs-theme="dark"] .dc-auth-body {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(10, 30, 60, 0.60) 100%),
      url('/css/images/login.jpg') center / cover no-repeat;
    background-attachment: fixed;
  }
}

/* ---------- Utility bar (theme + culture) ---------- */

.dc-auth-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 5;
}

.dc-auth-icon-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.625rem;
}

/* ---------- Sign in with Microsoft ---------- */

.dc-auth-sso {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: var(--dc-h-lg);
  border-radius: var(--dc-radius-btn);
  background: var(--dc-surface);
  color: var(--dc-ink);
  border: 1px solid var(--dc-line-strong);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dc-auth-sso:hover {
  background: var(--dc-raised);
  border-color: var(--dc-blue-tint-border);
  color: var(--dc-ink);
}

.dc-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  color: var(--dc-ink-3);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dc-auth-divider::before,
.dc-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dc-line);
}
