:root {
  --primary: #1a56db;
  --primary-dark: #1342b0;
}

body.auth-body {
  background: linear-gradient(135deg, #1a56db 0%, #0e3a8a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.auth-wrapper {
  width: 100%;
  max-width: 480px;
}

/* Registration card is wider — let wrapper expand for it */
.auth-wrapper:has(.auth-card[style*="720px"]) {
  max-width: 740px;
}

/* Fallback for browsers without :has() */
.auth-wrapper-wide {
  max-width: 740px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.auth-brand h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.3px;
}

.auth-brand img {
  height: 55px;
  margin-bottom: .5rem;
}

.auth-card {
  border: none;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.role-tabs .nav-link {
  border-radius: 8px;
  color: #555;
  font-size: .875rem;
  font-weight: 500;
  transition: all .2s;
}

.role-tabs .nav-link.active {
  background-color: var(--primary);
  color: #fff;
}

.auth-footer {
  margin-top: 1.5rem;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  text-align: center;
}

/* ── Mobile auth ─── */
@media (max-width: 575.98px) {
  body.auth-body {
    padding: 1rem .75rem;
    justify-content: flex-start;
    padding-top: 1.5rem;
  }
  .auth-brand h1 { font-size: 1.1rem; }
  .auth-brand img { height: 44px; }
  .auth-card .card-body { padding: 1.25rem !important; }
  .role-tabs .nav-link { font-size: .8rem; padding: .4rem .2rem; }
}
