/* Auth pages (login, access denied) — brand-aligned, minimal deps on site.css :root */

.wf-auth-body {
  min-height: 100dvh;
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wf-text);
  background: var(--wf-surface);
  position: relative;
  overflow-x: hidden;
}

.wf-auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 100% -10%, rgba(30, 136, 229, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 100%, rgba(67, 160, 71, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(251, 140, 0, 0.08), transparent 45%),
    linear-gradient(165deg, #f8fafc 0%, #eef2f7 45%, #f8fafc 100%);
}

.wf-auth-main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.5rem, 5vh, 3rem);
  padding-inline: var(--wf-space-4);
}

.wf-auth-wrap {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

.wf-auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-radius: var(--wf-radius-lg);
  border: 1px solid var(--wf-border-subtle);
  box-shadow: var(--wf-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.wf-auth-card:hover {
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .wf-auth-card:hover {
    box-shadow: var(--wf-shadow);
  }
}

.wf-auth-card-ribbon {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--wf-green) 0%,
    var(--wf-blue) 38%,
    var(--wf-orange) 72%,
    var(--wf-red) 100%
  );
}

.wf-auth-card-inner {
  padding: var(--wf-space-5) var(--wf-space-5) var(--wf-space-6);
}

@media (min-width: 576px) {
  .wf-auth-card-inner {
    padding: var(--wf-space-6);
  }
}

.wf-auth-logo {
  display: block;
  margin-inline: auto;
  margin-bottom: var(--wf-space-4);
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.1));
}

.wf-auth-heading {
  font-weight: 800;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  letter-spacing: 0.02em;
  margin-bottom: var(--wf-space-2);
  color: var(--wf-text);
}

.wf-auth-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wf-muted);
  letter-spacing: 0.04em;
}

.wf-auth-lead {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--wf-muted);
  margin-bottom: var(--wf-space-5);
}

.wf-auth-body .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wf-text);
}

.wf-auth-body .form-control {
  border-radius: 0.65rem;
  padding-block: 0.6rem;
  border-color: var(--wf-border-subtle);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wf-auth-body .form-control:focus {
  border-color: rgba(30, 136, 229, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.15);
}

.wf-auth-body .input-group-text {
  border-radius: 0.65rem;
  border-color: var(--wf-border-subtle);
  background: rgba(248, 250, 252, 0.95);
  color: var(--wf-muted);
}

.wf-auth-body .input-group > .form-control:not(:first-child) {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.wf-auth-body .input-group > .input-group-text:first-child {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.wf-auth-submit {
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 0.75rem;
  padding-block: 0.65rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--wf-red) 0%, var(--wf-orange) 100%);
  box-shadow: 0 10px 24px rgba(229, 57, 53, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.wf-auth-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(229, 57, 53, 0.32);
  color: #fff !important;
}

.wf-auth-submit:focus-visible {
  outline: 2px solid var(--wf-yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .wf-auth-submit {
    transition: none;
  }

  .wf-auth-submit:hover {
    transform: none;
  }
}

.wf-auth-footer-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wf-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wf-auth-footer-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Decorative floating orbs (static, no layout shift) */
.wf-auth-decor {
  position: fixed;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.wf-auth-decor--a {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  top: 8%;
  inset-inline-start: -8%;
  background: rgba(30, 136, 229, 0.25);
}

.wf-auth-decor--b {
  width: min(220px, 38vw);
  height: min(220px, 38vw);
  bottom: 12%;
  inset-inline-end: -6%;
  background: rgba(67, 160, 71, 0.22);
}
