.auth-login .btn-primary {
  background: #111827;
  border-color: #111827;
}

.auth-login .btn-primary:hover,
.auth-login .btn-primary:focus {
  background: #0b1220;
  border-color: #0b1220;
}

.auth-login .btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(17, 24, 39, 0.25);
}

.auth-login a {
  color: #111827;
}

.auth-login a:hover {
  color: #05070d;
}

.auth-login .form-control:focus {
  border-color: #111827;
  box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.15);
}

.auth-login .form-check-input:checked {
  background-color: #111827;
  border-color: #111827;
}

.auth-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(17, 24, 39, 0.08), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(17, 24, 39, 0.06), transparent 40%),
    linear-gradient(180deg, #f7f8fb 0%, #eef2f6 100%);
}

.auth-login {
  padding: 32px 0 48px;
}

.auth-login-brand {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.auth-logo {
  max-height: 56px;
  object-fit: contain;
}

.auth-brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #111827;
}

.auth-brand-subtitle {
  color: #6b7280;
  font-size: 14px;
}

.auth-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.auth-login .form-control {
  border-radius: 12px;
}

.auth-login .btn-primary {
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.auth-link {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: #0b1220;
  text-decoration: underline;
}

.auth-footer {
  font-size: 12px;
  letter-spacing: 0.3px;
}

@media (max-width: 575px) {
  .auth-login {
    padding: 18px 0 36px;
  }
  .auth-card {
    border-radius: 14px;
  }
}

/* Modern app shell */
.app-shell {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f6 100%);
}

.app-shell .page {
  background: transparent;
}

.app-shell .navbar-vertical {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.app-shell .sidebar-brand {
  padding: 14px 12px 6px;
}

.app-shell .sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.app-shell .sidebar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.app-shell .sidebar-logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #e2e8f0;
  font-weight: 700;
}

.app-shell .sidebar-brand-text {
  line-height: 1.1;
}

.app-shell .sidebar-brand-name {
  color: #f8fafc;
  font-weight: 700;
  font-size: 14px;
}

.app-shell .sidebar-brand-subtitle {
  color: rgba(226, 232, 240, 0.65);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.app-shell .navbar-vertical .nav-link {
  color: rgba(226, 232, 240, 0.85);
  border-radius: 10px;
  margin: 4px 8px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.app-shell .navbar-vertical .nav-link:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.15);
}

.app-shell .navbar-vertical .nav-link.active,
.app-shell .navbar-vertical .nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.app-shell .navbar-vertical .dropdown-menu {
  background: transparent;
  border: 0;
  padding-left: 8px;
}

.app-shell .navbar-vertical .dropdown-item {
  color: rgba(226, 232, 240, 0.8);
  border-radius: 8px;
  margin: 2px 8px;
  padding: 6px 10px;
}

.app-shell .navbar-vertical .dropdown-item:hover,
.app-shell .navbar-vertical .dropdown-item:focus {
  color: #fff;
  background: rgba(148, 163, 184, 0.15);
}

.app-shell .page-wrapper > .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}

.app-shell .page-wrapper .navbar .form-control {
  background: #f1f5f9;
  border-color: #e2e8f0;
  border-radius: 12px;
}

.app-shell .page-wrapper .navbar .form-control:focus {
  background: #fff;
  border-color: #94a3b8;
  box-shadow: 0 0 0 0.2rem rgba(148, 163, 184, 0.2);
}

.app-shell .page-header {
  padding-bottom: 0;
}

.app-shell .page-title {
  color: #0f172a;
  font-weight: 700;
}

.app-shell .card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.app-shell .card .card-body {
  padding: 18px 20px;
}

.app-shell .avatar {
  border: 2px solid #e2e8f0;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
}

.dashboard-card .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-card .card-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.dashboard-card .card-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-card .card-action {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.dashboard-card .card-action:hover {
  text-decoration: underline;
}

.dashboard-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.dashboard-icon i {
  font-size: 20px;
}

.reveal-card {
  animation: fade-rise 0.6s ease both;
}

.reveal-card:nth-child(2) {
  animation-delay: 0.05s;
}

.reveal-card:nth-child(3) {
  animation-delay: 0.1s;
}

.reveal-card:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-card {
    animation: none;
  }
}
