body {
  background: #f0f4f8;
}

/* ─── Navbar ─────────────────────────────────── */
.navbar-logo {
  height: 38px !important;
  width: auto !important;
  max-width: 160px !important;
  filter: brightness(0) invert(1);
  display: block;
}

.navbar-dark .nav-link.active {
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.dropdown-menu .dropdown-item.active {
  background-color: #0d6efd;
  color: #fff;
}

.dropdown-menu .dropdown-item.active i {
  color: #fff !important;
}

/* ─── Cards ──────────────────────────────────── */
.card {
  border: none;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  border-radius: 12px;
}

a .card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

/* ─── Form inputs ────────────────────────────── */
.form-control,
.form-select {
  display: block;
  width: 100%;
  border-radius: 8px;
  border-color: #dde3ea;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}

.input-group > .form-control:first-child {
  border-radius: 8px 0 0 8px;
}

.input-group > .form-control:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.input-group > .form-control:last-child:not(:first-child) {
  border-radius: 0 8px 8px 0;
}

.input-group > .btn:last-child {
  border-radius: 0 8px 8px 0;
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .35rem;
}

/* ─── Auth pages (login / cadastro) ─────────── */
.auth-wrapper {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(150deg, #e8f0fe 0%, #f0f7ff 50%, #e3f2fd 100%);
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(13, 110, 253, .13);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: authFadeIn .35s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-brand {
  background: linear-gradient(135deg, #1565c0 0%, #0d6efd 60%, #42a5f5 100%);
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}


.auth-brand-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 .3rem;
  letter-spacing: -.4px;
  position: relative;
  z-index: 1;
}

.auth-brand-sub {
  font-size: .83rem;
  opacity: .82;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* kept for backwards compat on cadastro page */
.auth-brand-white {
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  padding: 1.75rem 2rem 1.25rem;
}
.auth-brand-title-dark {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2f5e;
  margin: 0 0 .25rem;
  letter-spacing: -.3px;
}
.auth-brand-sub-dark {
  color: #6c757d;
  opacity: 1;
}

.auth-form {
  padding: 1.75rem 2rem 1.25rem;
}


.auth-footer {
  border-top: 1px solid #f0f2f5;
  text-align: center;
  padding: .9rem 2rem 1.1rem;
  font-size: .875rem;
  color: #6c757d;
}

.auth-footer a {
  color: #0d6efd;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.btn-auth {
  padding: .65rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(13, 110, 253, .3);
  transition: box-shadow .2s, transform .1s;
}

.btn-auth:hover {
  box-shadow: 0 6px 20px rgba(13, 110, 253, .38);
  transform: translateY(-1px);
}

.btn-auth:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 110, 253, .25);
}

/* ─── Form section divider ───────────────────── */
.form-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
  margin-bottom: 1rem;
}

.form-section-title i {
  font-size: .95rem;
}
