/* ── Login / Auth page ───────────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}
/* Soft branded glow in the background */
.auth-wrap::before,
.auth-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.auth-wrap::before {
  width: 420px; height: 420px;
  background: var(--gw-primary-container);
  top: -120px; left: -120px;
}
.auth-wrap::after {
  width: 360px; height: 360px;
  background: var(--gw-primary-container);
  bottom: -140px; right: -120px;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: 20px;
  box-shadow: var(--gw-elev2, 0 18px 48px rgba(0,0,0,.28));
  overflow: hidden;
}
/* Gradient accent strip on top of the card */
.auth-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gw-primary) 0%, var(--gw-primary-hover) 100%);
}

.auth-card-body { padding: 2.25rem 2rem 2rem; }

.auth-logo {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gw-primary-container);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.auth-logo img { width: 40px; height: 40px; object-fit: contain; }

.auth-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .15rem; color: var(--gw-text); }
.auth-subtitle { color: var(--gw-muted); font-size: .9rem; margin-bottom: 0; }

/* Inputs with leading icon */
.auth-field { margin-bottom: 1rem; }
.auth-field .form-label { font-size: .8rem; font-weight: 600; color: var(--gw-muted); margin-bottom: .35rem; }
.auth-input-group { position: relative; }
.auth-input-group .bi {
  position: absolute;
  left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gw-muted);
  font-size: .95rem;
  pointer-events: none;
}
.auth-input-group .form-control {
  padding-left: 2.4rem;
  height: 46px;
  border-radius: 12px;
}

.auth-submit {
  height: 46px;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-primary-hover) 100%);
  border: 1px solid var(--gw-primary);
  color: var(--gw-on-primary, #fff);
  transition: filter .2s ease, transform .15s ease;
}
.auth-submit:hover { filter: brightness(1.05); transform: translateY(-1px); color: var(--gw-on-primary, #fff); }

.auth-sso {
  height: 46px;
  border-radius: 12px;
  font-weight: 600;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.1rem 0;
  color: var(--gw-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider hr { flex: 1; border: 0; border-top: 1px solid var(--gw-border); opacity: 1; margin: 0; }

.auth-foot { text-align: center; margin-top: 1.25rem; font-size: .85rem; color: var(--gw-muted); }
.auth-foot a { color: var(--gw-primary); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
