a.microsoft-sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #075fff;
  color: white;
  font: 600 14px system-ui;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}

a.microsoft-sign-in:hover {
  background: #0052dc;
  color: white;
  box-shadow: 0 3px 10px rgba(7, 95, 255, .16);
}

a.microsoft-sign-in:focus-visible {
  outline: 3px solid #102b52;
  outline-offset: 4px;
}

a.microsoft-sign-in:active {
  background: #0048c2;
  box-shadow: none;
}

.microsoft-sign-in .ms-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-auto-rows: 8px;
  flex-shrink: 0;
  gap: 2px;
}

.microsoft-sign-in .ms-mark i:nth-child(1) { background: #f25022; }
.microsoft-sign-in .ms-mark i:nth-child(2) { background: #7fba00; }
.microsoft-sign-in .ms-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-sign-in .ms-mark i:nth-child(4) { background: #ffb900; }

@media (max-width: 600px) {
  a.microsoft-sign-in { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  a.microsoft-sign-in { transition: none; }
}
