.oauth-options {
  display: grid;
  gap: 12px;
  margin: 20px 0 22px;
}

.oauth-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: 12px;
  color: #142536;
  display: grid;
  gap: 14px;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  min-height: 62px;
  padding: 10px 14px;
  position: relative;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.oauth-button:hover,
.oauth-button:focus-visible {
  background: #fafdff;
  border-color: #8bbde2;
  box-shadow: 0 7px 20px rgba(18, 52, 78, .10), 0 0 0 3px rgba(8, 123, 211, .11);
  color: #0b3657;
  outline: none;
  transform: translateY(-1px);
}

.oauth-button:active {
  box-shadow: 0 2px 8px rgba(18, 52, 78, .10);
  transform: translateY(0);
}

.oauth-brand {
  align-items: center;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.oauth-brand svg {
  display: block;
  height: 22px;
  width: 22px;
}

.oauth-microsoft svg {
  height: 21px;
  width: 21px;
}

.oauth-button-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.oauth-button-copy strong {
  color: #15293b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.oauth-button-copy small {
  color: #708092;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.oauth-button-arrow {
  align-items: center;
  border-radius: 999px;
  color: #526477;
  display: inline-flex;
  font-size: 20px;
  height: 24px;
  justify-content: center;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
  width: 24px;
}

.oauth-button:hover .oauth-button-arrow,
.oauth-button:focus-visible .oauth-button-arrow {
  background: #e9f4fc;
  color: #087bd3;
  transform: translateX(2px);
}

.oauth-divider {
  align-items: center;
  color: #728195;
  display: flex;
  font-size: 12px;
  gap: 12px;
  justify-content: center;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.oauth-divider::before,
.oauth-divider::after {
  background: #dce5ed;
  content: "";
  flex: 1;
  height: 1px;
}

.oauth-onboarding,
.oauth-auth-message {
  margin: 0 auto;
  max-width: 580px;
  width: 100%;
}

.oauth-onboarding h1,
.oauth-auth-message h1 {
  color: #071a2d;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
  margin: 10px 0;
}

.oauth-provider-confirm {
  background: #e9f7f2;
  border: 1px solid #bfe8d9;
  border-radius: 999px;
  color: #08765b;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.oauth-field-row,
.oauth-password-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oauth-password-form .btn {
  align-self: end;
  min-height: 46px;
}

.oauth-cancel {
  margin-top: 18px;
  text-align: center;
}

.oauth-security-card,
.oauth-history-card {
  margin-bottom: 22px;
}

.oauth-security-card > h2,
.oauth-history-card > h2 {
  margin-bottom: 6px;
}

.oauth-method-list {
  border: 1px solid #dce5ed;
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
}

.oauth-method {
  align-items: center;
  background: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 18px;
}

.oauth-method + .oauth-method {
  border-top: 1px solid #e5ebf0;
}

.oauth-method-identity {
  align-items: center;
  display: flex;
  gap: 12px;
}

.oauth-method-identity > div {
  display: grid;
  gap: 4px;
}

.oauth-method-identity .oauth-brand {
  flex: 0 0 24px;
}

.oauth-method strong {
  color: #102b42;
}

.oauth-method span {
  color: #697a8d;
  font-size: 13px;
}

.oauth-method form {
  margin: 0;
}

.oauth-password-panel {
  background: #f4f8fb;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  margin-top: 18px;
  padding: 18px;
}

.oauth-password-panel h3 {
  margin: 0 0 4px;
}

.oauth-password-panel p {
  color: #697a8d;
  margin: 0 0 14px;
}

.oauth-history-card .table-wrap {
  overflow-x: auto;
}

.oauth-history-card table {
  min-width: 680px;
  width: 100%;
}

.oauth-history-card td,
.oauth-history-card th {
  white-space: nowrap;
}

/* Keep every navigation entry reachable on laptops, tablets and landscape phones. */
.app-shell .side-nav {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #49647a #071a2d;
  scrollbar-width: thin;
}

.app-shell .side-nav::-webkit-scrollbar {
  width: 8px;
}

.app-shell .side-nav::-webkit-scrollbar-track {
  background: #071a2d;
}

.app-shell .side-nav::-webkit-scrollbar-thumb {
  background: #49647a;
  border: 2px solid #071a2d;
  border-radius: 999px;
}

.app-shell .side-nav .side-nav-bottom {
  flex: 0 0 auto;
}

.oauth-auth-message .btn {
  display: inline-flex;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .oauth-button {
    min-height: 58px;
  }

  .oauth-field-row,
  .oauth-password-form {
    grid-template-columns: 1fr;
  }

  .oauth-method {
    align-items: flex-start;
    flex-direction: column;
  }

  .oauth-method > div:last-child,
  .oauth-method form,
  .oauth-method .btn {
    width: 100%;
  }
}

@media print {
  .oauth-options,
  .oauth-security-card,
  .oauth-history-card {
    display: none !important;
  }
}
