.office-auth {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
}

.office-auth--taskpane {
  max-width: 420px;
  min-height: 100%;
  justify-content: center;
}

.office-auth--content {
  --office-auth-content-logo-size: clamp(72px, 34vmin, 140px);
  max-height: 100%;
  overflow-y: auto;
  padding: 8px 0;
}

.office-auth__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.office-auth__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.office-auth__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  max-width: 42ch;
}

.office-auth__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.office-auth--content .office-auth__logo {
  min-height: 0;
}

.office-auth--content .office-auth__logo img {
  width: var(--office-auth-content-logo-size);
  height: var(--office-auth-content-logo-size);
  max-width: 100%;
  max-height: var(--office-auth-content-logo-size);
  object-fit: contain;
}

.office-auth--content .office-auth__subtitle {
  max-width: 48ch;
}

.office-auth__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.office-auth__button {
  width: min(240px, 100%);
  padding: 12px 18px;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  background: #2f2f2f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.office-auth__button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.office-auth__error,
.office-auth__unsupported {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #b91c1c;
}

.office-auth__unsupported a {
  color: inherit;
}

.office-auth__support-link {
  color: #6b7280;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  text-decoration: none;
}

.office-auth__support-link:hover {
  color: #4b5563;
  text-decoration: none;
}
